Re: [coredata] populate NSPopupButton with NSAttributedStrings
Re: [coredata] populate NSPopupButton with NSAttributedStrings
- Subject: Re: [coredata] populate NSPopupButton with NSAttributedStrings
- From: Scott Stevenson <email@hidden>
- Date: Sun, 8 Jul 2007 11:29:26 -0700
On Jul 8, 2007, at 5:10 AM, Pierre Chatel wrote:
So, if I understand you correctly, there is no way to populate an
NSPopupButton with NSAttributedStrings by using default bindings.
Since
NSMenuItem does have an setAttributedTitle: method, should I subclass
NSPopupButton to add a new binding ?
I think the simplest design would be to keep a parallel array of
strings that is kept in sync with the attributed strings, then bind
the popup to those.
- Scott
_______________________________________________
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