• 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 detection of changes to selection in NSOpenPanel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >KVO detection of changes to selection in NSOpenPanel (From: Jonathan Taylor <email@hidden>)

  • Prev by Date: KVO detection of changes to selection in NSOpenPanel
  • Next by Date: Re: dereference UnsafePointer
  • Previous by thread: KVO detection of changes to selection in NSOpenPanel
  • Next by thread: Getting resource for key (Swift)
  • Index(es):
    • Date
    • Thread