• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Delegates and multiple views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Delegates and multiple views (From: Brian Samuels <email@hidden>)

  • Prev by Date: Re: Finding applications that link to framework
  • Next by Date: Re: Notifications of filesystem changes
  • Previous by thread: Delegates and multiple views
  • Next by thread: Returning a Boolean in a NSValueTransformer
  • Index(es):
    • Date
    • Thread