• 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: Dianne <email@hidden>
  • Date: Sun, 23 Jan 2011 06:14:27 -0800 (PST)

I want to change the buttons color from the normal gray to dark gray to indicate
whether the button is assigned to other values other than its default value.

Is there any other or best way to do this? what you can suggest?
Thanks,
Yani






________________________________
From: Kyle Sluder <email@hidden>
To: Dianne <email@hidden>
Cc: "email@hidden" <email@hidden>
Sent: Sat, January 22, 2011 2:38:07 PM
Subject: Re: how to change NSButton color

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?

Because you're not supposed to change a button's color.

See the Human Interface Guidelines:
http://developer.apple.com/library/mac/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGIntro/XHIGIntro.html


--Kyle Sluder



_______________________________________________

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: how to change NSButton color
      • From: John Joyce <email@hidden>
References: 
 >how to change NSButton color (From: Dianne <email@hidden>)
 >Re: how to change NSButton color (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Problem with garbage collection in server application
  • Next by Date: iOS: Settings & Security
  • Previous by thread: Re: how to change NSButton color
  • Next by thread: Re: how to change NSButton color
  • Index(es):
    • Date
    • Thread