• 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: Getting at NSTextFinder from text view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting at NSTextFinder from text view


  • Subject: Re: Getting at NSTextFinder from text view
  • From: Martin Hewitson <email@hidden>
  • Date: Tue, 14 Apr 2015 14:05:38 +0200

> On 14 Apr 2015, at 13:30, Shane Stanley <email@hidden> wrote:
>
> On 14 Apr 2015, at 9:19 pm, Martin Hewitson <email@hidden> wrote:
>>
>> But if it fails for the first subsequent search, then the crashes will still happen if the old search results are out of range of the new string. Right?
>
> No, there's no crash -- and it doesn't fail. In fact, the odd behavior I was alluding to actually seems to be a "normal" inconsistency in the find bar's behavior.

Hmm, are you sure about this? I was just able to produce one. In my first text storage I have a long string and search for a common word like “the”. Then I switch to the second text storage which has a much shorter string and:

2015-04-14 14:04:07.719  An uncaught exception was raised
2015-04-14 14:04:07.719  *** NSRunStorage, _NSBlockNumberForIndex(): index (1560) beyond array bounds (452)

:(


>
> --
> Shane Stanley <email@hidden>
> <www.macosxautomation.com/applescript/apps/>
>
>
> _______________________________________________
>
> 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



_______________________________________________

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: Getting at NSTextFinder from text view
      • From: Shane Stanley <email@hidden>
References: 
 >Getting at NSTextFinder from text view (From: Shane Stanley <email@hidden>)
 >Re: Getting at NSTextFinder from text view (From: Martin Hewitson <email@hidden>)
 >Re: Getting at NSTextFinder from text view (From: Mark Wright <email@hidden>)
 >Re: Getting at NSTextFinder from text view (From: Shane Stanley <email@hidden>)
 >Re: Getting at NSTextFinder from text view (From: Martin Hewitson <email@hidden>)
 >Re: Getting at NSTextFinder from text view (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: My Phone does not work upside down
  • Next by Date: Re: Getting at NSTextFinder from text view
  • Previous by thread: Re: Getting at NSTextFinder from text view
  • Next by thread: Re: Getting at NSTextFinder from text view
  • Index(es):
    • Date
    • Thread