• 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
Dynamic color changes in a text view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamic color changes in a text view


  • Subject: Dynamic color changes in a text view
  • From: Daryn <email@hidden>
  • Date: Tue, 31 Dec 2002 12:11:51 -0600

I have a text view that contains text with various configurable colors. Using a continous color well, I'd like the existing text to change color.

My thoughts about how to implement this would involve adding my own attributes (ie. "MyRedColor", "MyGreenColor", etc) to the text storage in order to use attribute:atIndex:effectiveRange: to iterate over the storage and update the color.

Is there a simpler method to achieve this result? For example, is it possible to conceptually change a single color object that all the colored ranges use?

Daryn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Dynamic color changes in a text view
      • From: Mike Ferris <email@hidden>
    • Re: Dynamic color changes in a text view
      • From: Greg Titus <email@hidden>
  • Prev by Date: Re: Novice Question....
  • Next by Date: Re: Localization problem in PB
  • Previous by thread: Re: The new prefix.h file.
  • Next by thread: Re: Dynamic color changes in a text view
  • Index(es):
    • Date
    • Thread