Re: Delegates and multiple views
Re: Delegates and multiple views
- Subject: Re: Delegates and multiple views
- From: Yann Bizeul <email@hidden>
- Date: Mon, 26 Sep 2005 21:44:07 +0200
In developing a professional application, what is the most appropriate
way to handle the communication of various views that are
interconnected? For example, I have a parent and a child view - do I
pass the controller of the parent to the child or is it more
appropriate to have a delegate and pass the delegate between the
parent and child.
Personaly, I sometimes prefer calling superview: on a view instead of
creating outlets between them.
Another solution would be to use singleton, you would be able to call
[MyViewController sharedController] from anywhere in your
application, assuming you need only one MyViewController in your
application, or in your document.
Yann Bizeul • yann at tynsoe.org
Cocoa Developer
Tynsoe Projects
BuddyPop • GeekTool • SSH Tunnel Manager • ...
http://projects.tynsoe.org/ _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden