• 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: KVO, design and documentaion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO, design and documentaion


  • Subject: Re: KVO, design and documentaion
  • From: Scott Stevenson <email@hidden>
  • Date: Sat, 27 Jan 2007 17:04:06 -0800


On Jan 27, 2007, at 1:53 PM, Jim Correia wrote:

Using nil or NULL for options is pretty typical throughout Cocoa. I don't know for sure if it's documented, but it's certainly common in code.

It may be common, and the example in the documentation even uses NULL, but it is certainly not recommended (by myself or others) for KVO observers.

Actually I was talking about "options" not "context". :) A numeric 0 might be better in that case, though.


    - Scott
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >KVO, design and documentaion (From: patrick machielse <email@hidden>)
 >Re: KVO, design and documentaion (From: Scott Stevenson <email@hidden>)
 >Re: KVO, design and documentaion (From: Jim Correia <email@hidden>)

  • Prev by Date: NSTreeController doesn't notice insertion
  • Next by Date: Re: NSStatusItem not highlighted when using NSWindow instead of NSMenu
  • Previous by thread: Re: KVO, design and documentaion
  • Next by thread: Re: KVO, design and documentaion
  • Index(es):
    • Date
    • Thread