• 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: 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


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

  • Prev by Date: Re: Multiple delegates Window
  • Next by Date: Re: Multiple delegates Window
  • Previous by thread: Re: Multiple delegates Window
  • Next by thread: Re: Multiple delegates Window
  • Index(es):
    • Date
    • Thread