NSTextField woes
NSTextField woes
- Subject: NSTextField woes
- From: Robert Bielik <email@hidden>
- Date: Wed, 04 Mar 2009 20:13:38 +0100
Hi all,
I have a NSTextField in which I'd like to change the selected text color. From various sources I've got this:
NSTextView* tv = (NSTextView*)[[m_nstextfield window] fieldEditor:YES forObject:m_nstextfield];
[tv setSelectedTextAttributes:[NSDictionary dictionaryWithObject:[NSColor blackColor] forKey:NSForegroundColorAttributeName]];
but noo... I can't get anything but the default color, i.e. same as the normal text color.
Ideas?
TIA
/Rob
_______________________________________________
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