Re: -[NSDocument fileURL] is observable (KVO). Documented?
Re: -[NSDocument fileURL] is observable (KVO). Documented?
- Subject: Re: -[NSDocument fileURL] is observable (KVO). Documented?
- From: Kyle Sluder <email@hidden>
- Date: Tue, 1 Jun 2010 14:29:48 -0700
On Tue, Jun 1, 2010 at 2:15 PM, Mike Abdullah <email@hidden> wrote:
> By default Cocoa classes use automatic KVO. So long as Cocoa always changes the URL by calling -setFileURL: you will get proper notifications.
This is certainly not the case for a great deal of Cocoa classes,
particularly those which wrap Core Foundation types (NSPrintInfo,
anyone?).
The official word is "if it's not explicitly documented as
KVO-compliant, don't treat it as such."
--Kyle Sluder
_______________________________________________
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