Re: Maintaining an ordered array of attributes in an NSTextStorage subclass
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