Tracking text attribute ranges in NSTextStorage
Tracking text attribute ranges in NSTextStorage
- Subject: Tracking text attribute ranges in NSTextStorage
- From: Keith Blount <email@hidden>
- Date: Tue, 5 Apr 2005 13:35:22 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Hello,
Is there a way to track attribute ranges on an
attributed string? I am thinking of NSTextStorage. I
have notes associated with ranges of text in a text
view, and currently I am tracking all of these ranges
manually through textShouldChange... and
textDidChange: methods.
The notes are objects in themselves that store the
range of text to which they are associated. If I
created a custom text attribute such as
MYNoteAttribute that stored a note object as its value
class, is there any way that this object can also
automatically know/find out the range of text with
which it is associated?
I hope that makes sense...
Many thanks in advance for any help,
Keith
__________________________________
Yahoo! Messenger
Show us what our next emoticon should look like. Join the fun.
http://www.advision.webevents.yahoo.com/emoticontest
_______________________________________________
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