Re: Multiple delegates Window
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