Getting selected object in NSView-subclass in NSCollectionView
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