Re: performFindPanelAction: in WebView
Re: performFindPanelAction: in WebView
- Subject: Re: performFindPanelAction: in WebView
- From: Jeff Johnson <email@hidden>
- Date: Tue, 23 Mar 2010 23:45:36 -0500
Hi Gerriet.
You're missing this, unfortunately:
https://trac.webkit.org/browser/trunk/WebKit/mac/WebView/WebHTMLView.mm
https://bugs.webkit.org/show_bug.cgi?id=3640
I think it's a rite of passage in using WebKit to discover this. ;-) Yes, the documentation has failed to mention anything for the past 5 years. Those responsible have been sacked. Or not.
-Jeff
On Mar 23, 2010, at 10:54 PM, Gerriet M. Denkmann wrote:
> The documentation says about performFindPanelAction: in WebView: "An action method that opens the Find menu and Find panel."
>
> In my app though, the only thing it does is beeping (Jump to Selection works, all other MenuItems are gray).
>
> The following code:
> id d = [ NSApp targetForAction: @selector(performFindPanelAction:) ];
> NSLog(@"%s targetFor performFindPanelAction: is %@",__FUNCTION__,d);
>
> id f = [ theWindow firstResponder ];
> for(;;)
> {
> NSLog(@"%s f %@",__FUNCTION__,f);
> if ( f == nil ) break;
> f = [ f nextResponder ];
> };
> results in:
> 03 targetFor performFindPanelAction: is <WebHTMLView: 0x100451a90>
> 04 f <WebHTMLView: 0x100451a90>
> 04 f <WebClipView: 0x119de40d0>
> 05 f <WebDynamicScrollBarsView: 0x119de3840>
> 06 f <WebFrameView: 0x119de3150>
> 07 f <WebView: 0x119de0f90>
> 07 f <NSView: 0x119de0870>
> 08 f <NSTabView: 0x119de0500>
> 09 f <NSSplitView: 0x119dd70a0>
> 11 f <NSView: 0x119dc8580>
> 12 f <NSWindow: 0x10044ef30>
> 13 f <NSWindowController: 0x119dc6cd0>
> 13 f (null)
>
> So it seems, that my nib has the right connections.
>
> What am I missing?
> 10.6.2
_______________________________________________
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