Re: Find bar in a text view
Re: Find bar in a text view
- Subject: Re: Find bar in a text view
- From: Kevin Perry <email@hidden>
- Date: Thu, 15 Aug 2013 09:27:06 -0700
Sounds like a bug that you should report via Bug Reporter.
But as a workaround, you should be able to call -[NSTextView setIncrementalSearchingEnabled:NO] when the subview gets collapsed (then obviously set it back to YES when the text view is uncollapsed, though you will lose search results in doing so).
-KP
On Aug 15, 2013, at 4:59 AM, Shane Stanley <email@hidden> wrote:
> I have text views in a split view, and I use find bars with them. I'd like to implement incremental searching. When I turn it on in IB it works, except that if I collapse a subview showing the grey overlay, the overlay remains on screen. As a workaround, the documentation says I can turn the overlay off I should set the incrementalSearchingShouldDimContentView property to NO.
>
> The problem is that the find bar is all pre-implemented by NSTextView, and I can't see how to address the NSTextFinder instance. Any suggestions, or do I need to implement my own NSTextFinder instance?
>
> --
> Shane Stanley <email@hidden>
> 'AppleScriptObjC Explored' <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