• 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
changing the default color for text drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

changing the default color for text drawing


  • Subject: changing the default color for text drawing
  • From: Kenny Leung <email@hidden>
  • Date: Fri, 11 May 2007 08:28:54 -0700

Hi All.

We are using NSAttributedString for drawing pretty complicated text which sometimes has multiple colors. Now we find ourselves wanting to draw the same text on different backgrounds, which means that we want the default text color to be different. e.g. go from black text on a white background to white text on a black background. Is there a way to just change the default color that text is drawn in without affecting the rest of the attributes? It would be very onerous to go back and change everything so that we can specify the default text color when these strings are created.

Thanks!
_______________________________________________


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


  • Follow-Ups:
    • Re: changing the default color for text drawing
      • From: Douglas Davidson <email@hidden>
    • Re: changing the default color for text drawing
      • From: Sam Stigler <email@hidden>
  • Prev by Date: NSWorkspace and unmounting USB drives
  • Next by Date: Re: Hang when Nib is loaded
  • Previous by thread: Re: NSWorkspace and unmounting USB drives
  • Next by thread: Re: changing the default color for text drawing
  • Index(es):
    • Date
    • Thread