I've got a bunch of NSTextFields on a window (tagged 1-8) and I'm wondering if it's possible to access each individual text field programatically by its tag number so I can then get/set its value?
I'm a newbie and while I know how to access these 开发者_开发问答fields by name, doing it by tag number will make things an awful lot simpler for what I'm trying to achieve in this particular instance.
Thanks a lot :-)
the_fourth_textview = [the_superview_containing_all_textfields viewWithTag:4];
精彩评论