Hi all,
I have a MainController object I am using in COCOA to handle some global application specific tasks which are used in many other classes on my project.
Right now, I am instantiating that object in Interface Builder and linking it to the rest of the graphical objects through an IBOutlet.
Two quick questions:
1) Is there a better way to achieve this? Maybe creating the MainController object by hand and associating it with each class that needs it by code instead of an outlet?
2) Is there a way to specify the object creation order in InterfaceBuilder? This way, I am going to make sure my MainController object is created before the other objects using it.
Thanks a lot in advance.
I have a MainController object I am using in COCOA to handle some global application specific tasks which are used in many other classes on my project.
Right now, I am instantiating that object in Interface Builder and linking it to the rest of the graphical objects through an IBOutlet.
Two quick questions:
1) Is there a better way to achieve this? Maybe creating the MainController object by hand and associating it with each class that needs it by code instead of an outlet?
2) Is there a way to specify the object creation order in InterfaceBuilder? This way, I am going to make sure my MainController object is created before the other objects using it.
Thanks a lot in advance.