FROM : Keith Blount
DATE : Tue Apr 05 22:35:22 2005
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
DATE : Tue Apr 05 22:35:22 2005
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
| Related mails | Author | Date |
|---|---|---|
| Keith Blount | Apr 5, 22:35 | |
| Knud Möller | Apr 6, 12:04 | |
| Keith Blount | Apr 6, 13:52 |






Cocoa mail archive

