Re: KVO detection of changes to selection in NSOpenPanel
Re: KVO detection of changes to selection in NSOpenPanel
- Subject: Re: KVO detection of changes to selection in NSOpenPanel
- From: Kyle Sluder <email@hidden>
- Date: Mon, 20 Jul 2015 12:09:09 -0500
On Mon, Jul 20, 2015, at 11:13 AM, Jonathan Taylor wrote:
> This does make me wonder if I should perhaps not be surprised that my use
> of keyPathsAffectingValueForKey is not going well, although nothing in
> that statement seems to specifically preclude what I am doing from
> working on 10.8. Does anyone know if there’s any hope of my KVO approach
> working?
No. If a property is not explicitly documented to be KVO-compliant, you
must assume that it isn't.
The alternative seems to be to implement a delegate method for
> panelSelectionDidChange. Would that be the sensible way to deal with
> this, or is there a third and better way I should be using?
It seems pretty straightforward to just implement the delegate method
regardless of OS version.
--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