• 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
Getting selected object in NSView-subclass in NSCollectionView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting selected object in NSView-subclass in NSCollectionView


  • Subject: Getting selected object in NSView-subclass in NSCollectionView
  • From: Matthias Schonder <email@hidden>
  • Date: Sun, 27 Apr 2008 14:43:38 +0200


Hi,

when dragging an CD-Entity into a Window in InterfaceBuilder then IB automatically creates a CollectionView. This works fine but how do I get the selected Object in the ArrayController for a View?
I tried subclassing the NSView and NSCollectionViewItem and put a IBOutlet for NSArrayController so that I could work with the selected Object, but unfortunately it doesn't work.


How can I get the selected object?

Thank you very much in advance.

best regards,
matthias

_______________________________________________

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


  • Prev by Date: Re: Calculating file size
  • Next by Date: Re: Calculating file size
  • Previous by thread: Re: Problem with bindings to user defaults
  • Next by thread: New idea?
  • Index(es):
    • Date
    • Thread