• 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: Multiple delegates Window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple delegates Window


  • Subject: Re: Multiple delegates Window
  • From: Andy Lee <email@hidden>
  • Date: Sat, 25 Jul 2009 18:55:15 -0400

On Jul 25, 2009, at 6:21 PM, Andy Lee wrote:
On Jul 25, 2009, at 5:55 PM, Gevik wrote:
I was wondering if it is possible to connect more than one delegate from the Window in IB.

No, but you could make an object that forwards delegate messages to multiple other objects, and have that be the window delegate.

You could probably implement this quickly with an NSProxy, for example. But note that some window delegate methods have return values. You'd have to decide what your proxy object should return. If all you want is notifications, then Stephen's suggestion makes sense.


--Andy


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Multiple delegates Window (From: Gevik <email@hidden>)
 >Re: Multiple delegates Window (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: [iPhone] Why can't a UITextField be its own delegate?
  • Next by Date: Re: [iPhone] Why can't a UITextField be its own delegate?
  • Previous by thread: Re: Multiple delegates Window
  • Next by thread: The correct NSPredicate format for one-to-many relationship in Core Data
  • Index(es):
    • Date
    • Thread