• 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: Dynamic modification of text search results
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dynamic modification of text search results


  • Subject: Re: Dynamic modification of text search results
  • From: Ross Carter <email@hidden>
  • Date: Wed, 04 Jul 2012 20:45:57 -0400

On Jul 4, 2012, at 5:43 PM, Martin Wierschin <email@hidden> 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 (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: Dynamic modification of text search results
      • From: Martin Wierschin <email@hidden>
    • Re: Dynamic modification of text search results
      • From: Martin Hewitson <email@hidden>
References: 
 >Dynamic modification of text search results (From: Martin Hewitson <email@hidden>)
 >Re: Dynamic modification of text search results (From: Marco Tabini <email@hidden>)
 >Re: Dynamic modification of text search results (From: Martin Hewitson <email@hidden>)
 >Re: Dynamic modification of text search results (From: Marco Tabini <email@hidden>)
 >Re: Dynamic modification of text search results (From: Martin Hewitson <email@hidden>)
 >Re: Dynamic modification of text search results (From: Martin Wierschin <email@hidden>)

  • Prev by Date: Re: Crash when calling va_arg()
  • Next by Date: Re: Stupid block syntax!
  • Previous by thread: Re: Dynamic modification of text search results
  • Next by thread: Re: Dynamic modification of text search results
  • Index(es):
    • Date
    • Thread