Re: Cocoa Text System and Attributed Strings
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