I’m new to cocoa and it seems in order to get reference to a view/button/label/text etc.. you have to create an outlet using the interface builder. But is there some kind of mechanism like html/android where you can get reference to a view/button/label/text programmatically like getViewById().
I’m new to cocoa and it seems in order to get reference to a
Share
You can use
-[NSView viewWithTag:](which accepts an integer) to search the view hierarchy for the object with a tag that you have specified in Interface Builder, other code, etc.It is documented here.