• 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: Problem with fontDescriptorWithFontAttributes:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with fontDescriptorWithFontAttributes:


  • Subject: Re: Problem with fontDescriptorWithFontAttributes:
  • From: Laurent Daudelin <email@hidden>
  • Date: Mon, 21 Sep 2009 15:08:51 -0700

On Sep 21, 2009, at 14:30, Kyle Sluder wrote:

On Mon, Sep 21, 2009 at 2:29 PM, Laurent Daudelin
<email@hidden> wrote:
Simple: I want to set the font as a gray to show that the text field cell is
disabled, e.g. cannot be selected.

Okay, what you really want to do is set the NSForegroundColorAttributeName of the attributed string that's being drawn.

http://developer.apple.com/mac/library/DOCUMENTATION/Cocoa/Conceptual/AttributedStrings/AttributedStrings.html

--Kyle Sluder

That works, Kyle, thanks!

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://nemesys.dyndns.org
Logiciels Nemesys Software              				email@hidden
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries


_______________________________________________

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: 
 >Problem with fontDescriptorWithFontAttributes: (From: Laurent Daudelin <email@hidden>)
 >Re: Problem with fontDescriptorWithFontAttributes: (From: "John C. Randolph" <email@hidden>)
 >Re: Problem with fontDescriptorWithFontAttributes: (From: Laurent Daudelin <email@hidden>)
 >Re: Problem with fontDescriptorWithFontAttributes: (From: Kyle Sluder <email@hidden>)
 >Re: Problem with fontDescriptorWithFontAttributes: (From: Laurent Daudelin <email@hidden>)
 >Re: Problem with fontDescriptorWithFontAttributes: (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Problem with fontDescriptorWithFontAttributes:
  • Next by Date: FileManager Problem Post OS X 10.6 Installation
  • Previous by thread: Re: Problem with fontDescriptorWithFontAttributes:
  • Next by thread: Re: Problem with fontDescriptorWithFontAttributes:
  • Index(es):
    • Date
    • Thread