> On 14 Apr 2015, at 14:22, Shane Stanley <[email protected]> wrote: > > On 14 Apr 2015, at 10:05 pm, Martin Hewitson <[email protected]> > wrote: >> >> 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: > > This is what I'm doing in my text view subclass: > > [self setIncrementalSearchingEnabled:NO]; > [self.textFinder noteClientStringWillChange]; > // modify textStorage here > [self setIncrementalSearchingEnabled:YES]; > > Seems to be working in my (admittedly limited) testing.
Yeah, that’s what I’m doing, and I managed to create that crash. When you modify the textStorage, do you swap it out? I’m doing [self.layoutManager replaceTextStorage:textStorage]; > > -- > Shane Stanley <[email protected]> > <www.macosxautomation.com/applescript/apps/> > > _______________________________________________ > > Cocoa-dev mailing list ([email protected]) > > 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/martin.hewitson%40aei.mpg.de > > This email sent to [email protected] _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [email protected]
