Re: NSCollectionView questions
Re: NSCollectionView questions
- Subject: Re: NSCollectionView questions
- From: Dave Hayden <email@hidden>
- Date: Tue, 12 Feb 2008 14:02:31 -0800
On Feb 11, 2008, at 2:59 PM, David Carlisle wrote:
I needed to put a pop up menu inside a view of a
NSCollectionViewItem, then customize the contents of the menu using
the representedObject.
I subclassed NSCollectionViewItem and augmented setView to cause
"self" to be the delegate of the NSPopUpButton menu, obtained with
[view ViewWithTag:n].
Ah, that's funny--I've never noticed -[NSView viewWithTag:] before.
Seems kind of hacky, but yeah, that would work. Thanks for the tip!
-Dave
Panic, Inc.
_______________________________________________
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