Is it possible to call events in other .m classes?
Is it possible to call events in other .m classes?
- Subject: Is it possible to call events in other .m classes?
- From: Arnaud Nicolet <email@hidden>
- Date: Tue, 27 Jan 2009 16:22:17 +0100
Hello,
My configuration is somehow special: I have a Main_TestPref class and a ApplicationController class. The Main_TestPref class receives system events, like "mainViewDidLoad" when the interface is shown. The ApplicationController is the class whose outlets and actions are linked to (I couldn't link to the Main_TestPref class because Interface Builder don't know it exists).
When the application starts, I get the "mainViewDidLoad" in the Main_TestPref class. It's where I should update my controls to show saved values (read from a prefs file). My problem is that the class that knows my controls/outlets is the ApplicationController class, not the Main_TestPref class. So, in the "mainViewDidLoad" method of the Main_TestPref, I have to call a method in the instance of ApplicationController and I don't know how to do that.
I know it seems bad design but I think I haven't another choice.
I'm looking for some help, please. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden