NSTextView selection attributes...
NSTextView selection attributes...
- Subject: NSTextView selection attributes...
- From: Rachel Blackman <email@hidden>
- Date: Sun, 4 Mar 2007 10:34:17 -0800
Okay. One last one (can you tell I'm overhauling parts of the text
system in my app?) about NSTextView and friends.
Specifically, setSelectedTextAttributes will quite happily take the
background color, but selections seem to ignore the foreground color
in the given attributes. Is this by design? Apple's docs /claim/
that NSTextView sets the foreground color, but Googling produces
other folks who have had similar issues.
My guess is that it only sets the foreground color in a text view
which doesn't have rich text content that contains its own colors.
Are my options to just find a background color to use which is less
likely to turn things unreadable, or to use the layout manager to set
temporary attributes on selected ranges? I can't have been the only
one to tackle this issue before! :)
--
Rachel 'Sparks' Blackman -- sysadmin, developer, mad scientist
"If it is not broken, give me five minutes to redesign it!"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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