• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextView selection attributes...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: QuartzCore.h not being recognized
  • Next by Date: Very strange NSImage loading problem
  • Previous by thread: i-bar not blinking
  • Next by thread: Very strange NSImage loading problem
  • Index(es):
    • Date
    • Thread