Skip navigation.
 
mlRe: context menu for text in textfields
FROM : Evan Schoenberg
DATE : Tue Nov 30 22:14:34 2004

You can subclass NSTextField, override the +(NSMenu *)defaultMenu
implementation, grab [super defaultMenu] and then modify it by, for
example, looking for the menu item you want to remove and removing it. 
Might want to be careful when searching by name, as localization could
potentially cause you headaches there, but that'd be the first avenue
I'd explore.

-Evan
www.adiumx.com

On Nov 30, 2004, at 4:32 AM, ±è°æ¿Á wrote:

> Hi,

> I'm wondering how to remove the context menu for text in textfields
> which is generated automatically
>  when you click text with 'control + mouse click' in a textfield.

> Because font change is not applied to the text in my textfield, I want
> to remove the context menu 'font'....
> But I can't find any method to control the context menu for 'cut,
> copy, paste, font and ...'.

> I found that even iPhoto has the unsupported context menu for
> textfields.
> Isn't there any way to just remove it?

> Any help is greatly appreciated.

> G. Kim
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Cocoa-dev mailing list      (<email_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/evan.<email_removed>
>
> This email sent to evan.<email_removed>

Related mailsAuthorDate
mlcontext menu for text in textfields ±è°æ¿Á Nov 30, 11:32
mlRe: context menu for text in textfields Evan Schoenberg Nov 30, 22:14