Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: contextual menu
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: contextual menu



in fact the problem was that the delegate wasn't call. Just because
there is a mistake in the documentation
- (NSArray *)webView:(WebView
*)sendercontextMenuItemsForElement:(NSDictionary *)element
defaultMenuItems:(NSArray *)defaultMenuItems
shoul be :
- (NSArray *)webView:(WebView *)sender
contextMenuItemsForElement:(NSDictionary *)element
defaultMenuItems:(NSArray *)defaultMenuItems

with a space.

> The delegate is in complete control of the contents of the menu. If
> the delegate returns nil or an empty array from
> -webView:contextMenuItemsForElement:defaultMenuItems:  then there will
> be no context menu.
>
> John
>
>
> On Nov 26, 2003, at 6:20 AM, bob wrote:
>
>> i can't find documentation for disable contextual menu in webview.
>> there is just a delegate for add custom items, but nothing for
>> totally disable it.
>> if somebody know where i can find documentation or how can i do it.
>> thanks
>>
>> regards
>> godefroy
>> _______________________________________________
>> webkitsdk-dev mailing list | email@hidden
>> Help/Unsubscribe:
>> http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> webkitsdk-dev mailing list | email@hidden
> Help/Unsubscribe:
> http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webkitsdk-dev mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >contextual menu (From: bob <email@hidden>)
 >Re: contextual menu (From: John Sullivan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.