Skip navigation.
 
mlRe: NSCollectionView questions
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.

Related mailsAuthorDate
mlNSCollectionView questions Dave Hayden Feb 6, 23:07
mlRe: NSCollectionView questions Dave Hayden Feb 9, 00:04
mlRe: NSCollectionView questions Carter R. Harrison Feb 9, 00:54
mlRe: NSCollectionView questions David Carlisle Feb 11, 23:59
mlRe: NSCollectionView questions Adhamh Findlay Feb 12, 00:15
mlRe: NSCollectionView questions David Carlisle Feb 12, 06:47
mlRe: NSCollectionView questions Dave Hayden Feb 12, 23:02
mlRe: NSCollectionView questions David Carlisle Feb 13, 00:05