On Jul 4, 2012, at 5:43 PM, Martin Wierschin <mar...@nisus.com> wrote:

> 
> Instead, you'll want to use a custom attribute/name, eg:
> 
>    NSString* TPDocumentMatchAttributeName = @"TPDocumentMatchAttribute";
>    ...
>    [storage addAttribute:TPDocumentMatchAttributeName value:match 
> range:match.range];
> 

Regarding the other solution--just do another search when the text changes--you 
only have to search the range that was changed, not the entire text storage, 
right? That doesn't seem like it would be too ungainly.

Ross
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to