Re: Multiple delegates Window
Re: Multiple delegates Window
- Subject: Re: Multiple delegates Window
- From: WT <email@hidden>
- Date: Sun, 26 Jul 2009 00:07:31 +0200
There is only one window outlet, so you can only hook up one object as
the window's delegate. I am currently running into a similar issue
with a text field delegate. See the discussion in the thread "[iPhone]
Why can't a UITextField be its own delegate?"
My solution, which has stirred some controversy, is to re-route the
delegate internally so that I can achieve a measure of "delegation
chaining" in such a way that, from the outside, it still looks like
there is only one delegate.
(The thread is actually about a possible bug in the iPhone SDK, but it
has veered into a discussion of the pros and cons of my approach)
On Jul 25, 2009, at 11:55 PM, Gevik wrote:
I was wondering if it is possible to connect more than one delegate
from the Window in IB.
When I create a new Cocoa application in XCode, the
Delegate_AppDelegate.m/h is created automatically.
I would like to add a second object with specific functionality as a
delegate object.
How do I do this?
Thanx
_______________________________________________
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