Re: NSForegroundColorAttributeName without AppKit
Re: NSForegroundColorAttributeName without AppKit
- Subject: Re: NSForegroundColorAttributeName without AppKit
- From: Ken Thomases <email@hidden>
- Date: Mon, 1 Mar 2010 21:44:22 -0600
On Mar 1, 2010, at 9:27 PM, BareFeet wrote:
>>> I have some working code for adding attributes to a string. I'd like to modify it so it will work without needing AppKit. I can get it all going except the NSForegroundColorAttributeName constant which seems to only exist in AppKit.
>>
>> If you log the actual value of that constant, it's simply @"NSColor".
>
> Unfortunately it seems that using the @"NSColor" key as part of an NSAttributedString also requires AppKit. Put another way, I can't see any way to draw multi-colored text in a wrapping text field without using AppKit.
Huh? How do you hope to draw any kind of text in a text field without using AppKit?
And you certainly can add the attribute to the attributed string without AppKit.
Regards,
Ken
_______________________________________________
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