• 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
Re: [coredata] populate NSPopupButton with NSAttributedStrings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coredata] populate NSPopupButton with NSAttributedStrings


  • Subject: Re: [coredata] populate NSPopupButton with NSAttributedStrings
  • From: "Pierre Chatel" <email@hidden>
  • Date: Sun, 8 Jul 2007 23:20:44 +0200

But, I do want to display attributed strings (with pictures) in the popup
button. It seems there is no way to do so with the default bindings provided
by NSPopupButton.

On 7/8/07, Scott Stevenson <email@hidden> wrote:


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

_______________________________________________

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


  • Follow-Ups:
    • Re: [coredata] populate NSPopupButton with NSAttributedStrings
      • From: Scott Stevenson <email@hidden>
References: 
 >[coredata] populate NSPopupButton with NSAttributedStrings (From: "Pierre Chatel" <email@hidden>)
 >Re: [coredata] populate NSPopupButton with NSAttributedStrings (From: Jim Correia <email@hidden>)
 >Re: [coredata] populate NSPopupButton with NSAttributedStrings (From: "Pierre Chatel" <email@hidden>)
 >Re: [coredata] populate NSPopupButton with NSAttributedStrings (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: Decoding a line of Objective-C
  • Next by Date: Anyone recognise this crash in loadNib?
  • Previous by thread: Re: [coredata] populate NSPopupButton with NSAttributedStrings
  • Next by thread: Re: [coredata] populate NSPopupButton with NSAttributedStrings
  • Index(es):
    • Date
    • Thread