• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Attributed title for NSPopUpButtonCell within NSTableView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Attributed title for NSPopUpButtonCell within NSTableView?


  • Subject: Attributed title for NSPopUpButtonCell within NSTableView?
  • From: Glenn Zelniker <email@hidden>
  • Date: Thu, 3 Aug 2006 15:52:18 -0400

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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: The right way to build a full screen app
  • Next by Date: Re: Crash on [NSApp endSheet]
  • Previous by thread: Licensing a cocoa framework ?
  • Next by thread: Programmatically setting Principle Class
  • Index(es):
    • Date
    • Thread