Skip navigation.
 
mlAttributed title for NSPopUpButtonCell within NSTableView?
FROM : Glenn Zelniker
DATE : Thu Aug 03 21:52:18 2006

I have a column within a NSTableView whose cell is a 
NSPopUpButtonCell. In other words, the entry for each row in that 
particular column is a pop-up menu. I'm able to populate the pop-up's 
menu and I'm also able to set the pop-up's title and delegate without 
any problem (well, the delegate required a little hacking); 
everything works exactly as it should. But now I want to customize 
the app's appearance a little bit, including using an attributed 
string for the pop-up menu's title (I want to be able to set the text 
color). I can't get this to work, even though somewhere up the 
inheritance chain NSPopUpButton cell responds to -setAttributedTitle.

Has anyone here had any luck putting an attributed title on a pop-up 
cell that lives in a table?

Glenn Zelniker

Related mailsAuthorDate
No related mails found.