Question

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 :-)

Was it helpful?

Solution

the_fourth_textview = [the_superview_containing_all_textfields viewWithTag:4];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top