• 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: Text Color in NSButton?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Text Color in NSButton?


  • Subject: Re: Text Color in NSButton?
  • From: Sherm Pendley <email@hidden>
  • Date: Thu, 28 Nov 2002 07:28:10 -0500

On Thursday, November 28, 2002, at 06:45 AM, Steve wrote:

How do I programmatically change the text color of the title of an NSButton?

Create an NSAttributedString with the properties you want (color, font, etc.), and assign it to the button with setAttributedTitle:.

sherm--

If you listen to a UNIX shell, can you hear the C?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Text Color in NSButton?
      • From: Steve <email@hidden>
References: 
 >Text Color in NSButton? (From: Steve <email@hidden>)

  • Prev by Date: NSQuickDraw printing
  • Next by Date: Re: Objective-C Multiple Inheritance Work Arounds?
  • Previous by thread: Text Color in NSButton?
  • Next by thread: Re: Text Color in NSButton?
  • Index(es):
    • Date
    • Thread