Hi all,

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.

Here's an example:

NSColor* tokenColor = [NSColor red];
NSDictionary* tokenAttributesDict = [NSDictionary 
dictionaryWithObject:tokenColor forKey:NSForegroundColorAttributeName];
NSRange tokenRange = NSMakeRange(startCharN, [token length]);
[tokenizedAttributedString addAttributes:tokenAttributesDict range:tokenRange];

Is there an alternative to NSForegroundColorAttributeName I can use without 
needing AppKit?

Thanks,
Tom
BareFeet

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to