Re: can't get NSTextFinder to show the find panel
Re: can't get NSTextFinder to show the find panel
- Subject: Re: can't get NSTextFinder to show the find panel
- From: Kevin Perry <email@hidden>
- Date: Fri, 23 Mar 2012 09:25:49 -0700
The public NSTextFinder API doesn't provide a way for you to access the old-style find panel.
-KP
On Mar 23, 2012, at 6:18 AM, Eric Slosser <email@hidden> wrote:
> I'm trying to use the NSTextFinder object on Lion, from an app whose base SDK is Tiger.
>
> I've created an instance of NSTextFinder, called its -setClient: method, my client implements all methods of the NSTextFinderClient (using -string). My client does _not_ do the NSTextFinderBarContainer protocol, I want to use the panel.
>
> I expect that calling [m_textFinder performAction:NSTextFinderActionShowFindInterface] would make the find panel appear, but it doesn't.
>
> It's not the app or how it's built, because in another window, I have an NSTextView, and it is able to show the panel. I've traced its calls and see it's using NSTextFinder.
>
> What am I doing wrong?
>
> TIA!
> _______________________________________________
>
> 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