• 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
Re: Cocoa Text System and Attributed Strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa Text System and Attributed Strings


  • Subject: Re: Cocoa Text System and Attributed Strings
  • From: Douglas Davidson <email@hidden>
  • Date: Thu, 2 Feb 2006 11:36:27 -0800


On Feb 2, 2006, at 11:29 AM, Alan Smith wrote:

I've had a good look at the documentation of the Cocoa Text System and believe it is more than capable of pulling off what I need. My gut thought is that Attributed String programming will help me out with all of the above. I'm just worried that I'll have to do some serious subclassing of the TextStorage component so that I can embed a few markers within the RTF string...unless there is a better way of course!


Typically one would store additional information in an attributed string using custom attributes rather than a subclassed text storage. A subclassed text storage might be used if one wanted to entirely replace the way in which the text is stored--for example, computing attributes on demand rather than storing them with the text. I'm not sure I fully understand what you're doing, but from your description it sounds like you could do what you want with custom attributes, i.e. simply defining some additional strings for attribute names and applying them with particular values to certain ranges of the document.


Douglas Davidson

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Cocoa Text System and Attributed Strings (From: Alan Smith <email@hidden>)

  • Prev by Date: Cocoa Text System and Attributed Strings
  • Next by Date: Re: Fix Depracated call in Apple Sample Code?
  • Previous by thread: Cocoa Text System and Attributed Strings
  • Next by thread: Re: Fix Depracated call in Apple Sample Code?
  • Index(es):
    • Date
    • Thread