• 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
delegation of NSApp
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

delegation of NSApp


  • Subject: delegation of NSApp
  • From: Robert Goldsmith <email@hidden>
  • Date: Wed, 5 Sep 2001 23:45:21 +0100

Hi :)

As I mentioned earlier, I'm getting my head around the idea of delegation.

When you wish to respond to notifications such as applicationWillTerminate, I figure there are two ways to go - either register as being interested in tht notification with the notification center or delegate NSApp. Which is 'better' and why. Also, if you delegate NSApp and you only have a small program, is it better to have a second class to deal with the delegations (and does this have to be instantiated in the nib) or incorportate the delegated notification responses into the main application class instance.

Or have I missed something?

Thanks

Robert
--
Please note the new email address:
email@hidden


  • Follow-Ups:
    • Re: delegation of NSApp
      • From: Matthew Formica <email@hidden>
  • Prev by Date: -[NSUserDefaults initWithUser:] broken?
  • Next by Date: Re: delegation of NSApp
  • Previous by thread: Re: -[NSUserDefaults initWithUser:] broken?
  • Next by thread: Re: delegation of NSApp
  • Index(es):
    • Date
    • Thread