• 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: how to change NSButton color
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to change NSButton color


  • Subject: Re: how to change NSButton color
  • From: "Gary L. Wade" <email@hidden>
  • Date: Sat, 22 Jan 2011 16:35:31 -0800

Depending on the effect and need (e.g., iCal calendar choice check boxes?), you might do fine with those, but you may have to update your app every release of the OS. Another way to do something like this, provided you have a well-defined mask, is to use an overlay window in the same way that Safari's inspect elements does it—the WebKit code is available for you to view.

- Gary L. Wade (Sent from my iPhone)

On Jan 20, 2011, at 11:49 PM, Dianne <email@hidden> wrote:

> Hi List,
>
> I would like to know what you can suggest when changing the color of NSButton.
> I have read everywhere that I need to subclass NSButtonCell and NSButton as
> well, is this the only way to do it for Mac?
> I'm surprised that this is how complicated it is in Mac. Why NSButton doesn't
> have any property to set its color?
>
> Thanks in advance for your help.
> Thanks,
> yani
>
> _______________________________________________
>
> 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

References: 
 >how to change NSButton color (From: Dianne <email@hidden>)

  • Prev by Date: Cocoa Drawing vs. Quartz Drawing
  • Next by Date: Re: Cocoa Drawing vs. Quartz Drawing
  • Previous by thread: Re: Weather API for commercial use in iOS app
  • Next by thread: lots of find/replace in text file
  • Index(es):
    • Date
    • Thread