I was just turning off automatic KVO for one single property on my class and 
went to implement +(BOOL)automaticallyNotifiesObserversForKey:(NSString*)key. 
When I started to type, Xcode gave me a long list of possibles as it often does 
.. at which point I realized there was one for each named property, named 
automaticallyNotifiesObserversof<Property Name>. I'd not seen that before but 
picked automaticallyNotifiesObserversOfSelectedIndex, which is the property I 
wanted to turn off, made it return NO, and it worked. 

Then I went and looked in the documentation, couldn't find a reference to it 
anywhere in iOS, eventually found a note in the 10.5 Leopard release notes that 
that pattern had been introduced, that's the only documentation I can find on 
it anywhere. 

I'm assuming it works on iOS (only have the sim with me here today, not the 
device and so it's possible they might differ) and is the modern way to turn 
off observation for single properties, is it? If so I'll file a documentation 
bug on it. _______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to