I solved a similar problem when putting a pop up menu into a collectionView item.

There might be an easier way, but I assume that to put a button in a collectionViewItem, the button would have to send a message to a subclass of NSCollectionViewItem, which you would then cause to send a similar message along with a copy of the representedObject to a subclass of NSCollectionView. (Note that an NSCollectionViewItem knows both its representedObject and its NSCollectionView.) You would write your NSCollectionView subclass to have an outlet for File's Owner, so you could forward the message from the button to File's Owner, which could then take some action on the representedObject.

On May 23, 2008, at 8:01 AM, Marcel Borsten wrote:

Could you give a bit more information on how you solved this. I'm trying to do something similar, but I can't get it to work.


Hm ...I had to bind it to a NSCollectionItemView subclass that routes to the AppController.

cheers
--
Torsten

On Apr 7, 2008, at 18:04, Torsten Curdt wrote:
Hm ...I was trying to bind a button inside a NSCollectionItemView view to an action in my AppController. This obviously does not work.

Of course the view is only a prototype that gets cloned per item in the collection but I was expecting to just get the instance passed on the call.

So how would I need to do something like this?

cheers
--
Torsten
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/marcel%40mass-it.nl

This email sent to [EMAIL PROTECTED]


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/davidcar1%40mstarmetro.net

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to