FROM : Dave Hayden
DATE : Tue Feb 12 23:02:31 2008
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.
DATE : Tue Feb 12 23:02:31 2008
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.
| Related mails | Author | Date |
|---|---|---|
| Dave Hayden | Feb 6, 23:07 | |
| Dave Hayden | Feb 9, 00:04 | |
| Carter R. Harrison | Feb 9, 00:54 | |
| David Carlisle | Feb 11, 23:59 | |
| Adhamh Findlay | Feb 12, 00:15 | |
| David Carlisle | Feb 12, 06:47 | |
| Dave Hayden | Feb 12, 23:02 | |
| David Carlisle | Feb 13, 00:05 |






Cocoa mail archive

