• 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: NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event (From: Ari Black <email@hidden>)
 >Re: NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Cocoa Classes from C++?
  • Next by Date: Re: NSImage display quality and zooming
  • Previous by thread: Re: NSNotificationCenter: addObserver:selector:name:object: - Specifying a single event
  • Next by thread: Dealing with NSError outside of the Responder chain
  • Index(es):
    • Date
    • Thread