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

Re: Tracking text attribute ranges in NSTextStorage


  • Subject: Re: Tracking text attribute ranges in NSTextStorage
  • From: Keith Blount <email@hidden>
  • Date: Wed, 6 Apr 2005 04:52:27 -0700 (PDT)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys

Many thanks for your reply, that is indeed really
helpful. I found the part in the docs about cycling
through an attributed string by attributes in the way
that you are doing, and that seems exactly what I want
to do.

What I was going to do was use a NotesManager
controller layer to monitor
NSTextStorageDidProcessEditingNotifications and update
all the note ranges there, but I think your solution
of subclassing NSTextStorage is a more efficent option
and I will probably take that route.

Many thanks for the help, I think that solves my
problem, much appreciated.
All the best,
Keith



> Hi,

> I'm doing something very similar in a project of
> mine. I don't know any
> automatic way of doing it, but what I do is this:

> - I have a subclass of NSTextStorage called
> AnnotatedTextStorage. Where
> you have note objects, I have annotation objects.
> - in AnnotatedTextStorage, I override
> replaceCharactersInRange:range
withString:string.
> There is also another method for attributed
> stringes. These methods get called every time the
> content of the TextStorage changes:



__________________________________
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: Re: Re: Odd problem using NSCoding
  • Next by Date: Re: Isolating a bug?
  • Previous by thread: Re: Tracking text attribute ranges in NSTextStorage
  • Next by thread: Is NSScaleProportionally buggy?
  • Index(es):
    • Date
    • Thread