• 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: Maintaining an ordered array of attributes in an NSTextStorage subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Maintaining an ordered array of attributes in an NSTextStorage subclass


  • Subject: Re: Maintaining an ordered array of attributes in an NSTextStorage subclass
  • From: Keith Blount <email@hidden>
  • Date: Mon, 10 Aug 2009 06:21:51 -0700 (PDT)

Hi Graham,

Thanks for the reply. I guess I lost the point in my long, rambling e-mail, so sorry about that. What I really meant to ask is *how* to maintain this list accurately. Given that the attribute can be added, removed, text can be copied and pasted, a range of text that has a comment associated with it might be cut in half and so on, what is the best approach for keeping this list updated as the text changes?

Thanks again and all the best,
Keith

--- On Mon, 8/10/09, Graham Cox <email@hidden> wrote:

> From: Graham Cox <email@hidden>
> Subject: Re: Maintaining an ordered array of attributes in an NSTextStorage subclass
> To: "Keith Blount" <email@hidden>
> Cc: email@hidden
> Date: Monday, August 10, 2009, 1:03 PM
>
> On 10/08/2009, at 10:55 PM, Keith Blount wrote:
>
> > does anyone have any better ideas as to how I might
> approach this?
>
>
> Don't know if "better", but why not just maintain the list
> you need yourself? You could either subclass NSTextStorage
> and add a comment array, or make another object that
> comprised NStextStorage plus the comments array, whichever
> works best for you.
>
> --Graham
>
>
>



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Maintaining an ordered array of attributes in an NSTextStorage subclass
      • From: Graham Cox <email@hidden>
References: 
 >Re: Maintaining an ordered array of attributes in an NSTextStorage subclass (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Maintaining an ordered array of attributes in an NSTextStorage subclass
  • Next by Date: Re: Outline View DnD
  • Previous by thread: Re: Maintaining an ordered array of attributes in an NSTextStorage subclass
  • Next by thread: Re: Maintaining an ordered array of attributes in an NSTextStorage subclass
  • Index(es):
    • Date
    • Thread