Re: NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event
Re: NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event
- Subject: Re: NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event
- From: Andreas Mayer <email@hidden>
- Date: Wed, 28 May 2008 08:19:38 +0200
Am 28.05.2008 um 06:00 Uhr schrieb Jens Alfke:
I have defined Quit: on my main object, so I pass self as the first
argument.
This is, functionally, correct.
However, the method should be named "quit:", not "Quit:".
And while we are at it, "quit:" isn't a good name either, 'cause it
sounds like something you'd sent the receiver to tell him to quit.
I suggest you name it 'applicationWillTerminate:'. That's clear and
unambiguous.
Andreas
_______________________________________________
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