Re: NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event

2008-05-27 Thread Andreas Mayer
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 soun

Re: NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event

2008-05-27 Thread Jens Alfke
On 27 May '08, at 12:06 PM, Ari Black wrote: NSNotificationCenter *center = [NSNotificationCenter defaultCenter]; [center addObserver:self selector:@selector(Quit:) name:NSApplicationWillTerminateNotification object:NSApp]; I have defined Quit: on my main object, so I pass self as the first

NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event

2008-05-27 Thread Ari Black
Hello, Originally I was going to post this as a question, but since I found the solution while composing the email, I thought I'd simply send it along for the edification of anyone who might be in a similar situation. I'm trying to make sure that my application catches all possible routes