Re: Problem with fontDescriptorWithFontAttributes:

2009-09-21 Thread Laurent Daudelin
On Sep 19, 2009, at 00:03, John C. Randolph wrote: Looks like NSFontColorAttribute is deprecated after 10.4. Try NSForegroundColorAttributeName instead. -jcr John, I just tried this: NSFontDescriptor *currentFontDescriptor = [[self font] fontDescriptor]; NSMutableDictionary

Re: Problem with fontDescriptorWithFontAttributes:

2009-09-21 Thread Kyle Sluder
Fonts really don't have colors. I don't know why NSFontColorAttribute is defined in NSFontDescriptor.h, but none of the other attributed string attributes are in there. Why are you trying to attach a color to a font? --Kyle Sluder ___ Cocoa-dev

Re: Problem with fontDescriptorWithFontAttributes:

2009-09-21 Thread Laurent Daudelin
On Sep 21, 2009, at 14:23, Kyle Sluder wrote: Fonts really don't have colors. I don't know why NSFontColorAttribute is defined in NSFontDescriptor.h, but none of the other attributed string attributes are in there. Why are you trying to attach a color to a font? --Kyle Sluder Simple: I

Re: Problem with fontDescriptorWithFontAttributes:

2009-09-21 Thread Kyle Sluder
On Mon, Sep 21, 2009 at 2:29 PM, Laurent Daudelin laurent.daude...@verizon.net 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

Re: Problem with fontDescriptorWithFontAttributes:

2009-09-21 Thread Steve Christensen
On Sep 21, 2009, at 2:29 PM, Laurent Daudelin wrote: On Sep 21, 2009, at 14:23, Kyle Sluder wrote: Fonts really don't have colors. I don't know why NSFontColorAttribute is defined in NSFontDescriptor.h, but none of the other attributed string attributes are in there. Why are you trying to

Re: Problem with fontDescriptorWithFontAttributes:

2009-09-21 Thread Laurent Daudelin
On Sep 21, 2009, at 14:47, Steve Christensen wrote: On Sep 21, 2009, at 2:29 PM, Laurent Daudelin wrote: On Sep 21, 2009, at 14:23, Kyle Sluder wrote: Fonts really don't have colors. I don't know why NSFontColorAttribute is defined in NSFontDescriptor.h, but none of the other attributed

Re: Problem with fontDescriptorWithFontAttributes:

2009-09-19 Thread John C. Randolph
Looks like NSFontColorAttribute is deprecated after 10.4. Try NSForegroundColorAttributeName instead. -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Problem with fontDescriptorWithFontAttributes:

2009-09-18 Thread Laurent Daudelin
Not sure if it's a known issue but given this: currentFontDescriptor = [NSFontDescriptor fontDescriptorWithFontAttributes:fontAttributes]; NSFont *fontToUse = [NSFont fontWithDescriptor:currentFontDescriptor size:[[self font] pointSize]]; I'm getting this in the debugger: (gdb) po