• 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
Tracking text attribute ranges in NSTextStorage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: get controller class name from another class.
  • Next by Date: Re: how input method editors work
  • Previous by thread: get controller class name from another class.
  • Next by thread: Re: Tracking text attribute ranges in NSTextStorage
  • Index(es):
    • Date
    • Thread