automaticallyNotifiesObserversOf<property>
automaticallyNotifiesObserversOf<property>
- Subject: automaticallyNotifiesObserversOf<property>
- From: Roland King <email@hidden>
- Date: Sat, 05 Nov 2011 13:51:18 +0800
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 (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