Monday, 26 August 2013

Multiple IBOutlets (from different classes) to One Object

Multiple IBOutlets (from different classes) to One Object

Just a quick semantic question, but is it considered OK to have multiple
IBOutlets, located in different classes, going to one (for example)
NSButton in Interface Builder. The reason I ask is I need to enable and
disable an NSButton based on events that happen in different classes.
Would multiple IBOutlets be OK, or should I be creating a controller class
for the Button that would receive a message telling it to change the sate
of the button, resulting in only one IBOutlet?
Thanks in advance.

No comments:

Post a Comment