• 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: Is there an NSCollectionView selection change notification?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is there an NSCollectionView selection change notification?


  • Subject: Re: Is there an NSCollectionView selection change notification?
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 18 May 2008 20:36:45 -0700


On 18 May '08, at 7:41 PM, Markus Spoettl wrote:

I've started playing with NSCollectionView and everything worked out beautifully (custom views, selection state handling for items etc.). One thing I can't figure out is how my application/document gets notified about a change of selection.

If you bind the collection view to an NSArrayController, you can observe the controller's selection-related properties, either programmatically or by using bindings in IB. For example, you can bind a button's "enabled" property to the controller's "canRemove", to enable the button only when there's a selection.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: Is there an NSCollectionView selection change notification?
      • From: Markus Spoettl <email@hidden>
References: 
 >Is there an NSCollectionView selection change notification? (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: validateMenuItem() not always being called
  • Next by Date: Re: XML schema support
  • Previous by thread: Is there an NSCollectionView selection change notification?
  • Next by thread: Re: Is there an NSCollectionView selection change notification?
  • Index(es):
    • Date
    • Thread