delegation of NSApp
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