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
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
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
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
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
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
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
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