• 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 question on Tree Controllers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO question on Tree Controllers


  • Subject: Re: KVO question on Tree Controllers
  • From: Rob Keniger <email@hidden>
  • Date: Wed, 2 Apr 2008 10:54:21 +1000


On 02/04/2008, at 5:11 AM, Jeff LaMarche wrote:
I've also tried using @"selectedObjects" rather than @"selection". Now this notifies me when the selection changes, except it doesn't notify me if the user clicked somewhere resulting in an empty selection, nor when the selection is currently empty and the user selects on the same object that was previously selected.

I need to know when the selection becomes empty, not just when it changes from one node to another node. Is there another keyPath or notification I can register for that will do that?


I observe @"selectionIndexPaths" which seems to do the job.

--
Rob Keniger



_______________________________________________

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 question on Tree Controllers (From: Jeff LaMarche <email@hidden>)

  • Prev by Date: Re: Finding out about new windows.
  • Next by Date: Re: Is there a Source List control in Cocoa
  • Previous by thread: Re: KVO question on Tree Controllers
  • Next by thread: Need for a creator code?
  • Index(es):
    • Date
    • Thread