Re: context menu for text in textfields
Re: context menu for text in textfields
- Subject: Re: context menu for text in textfields
- From: Evan Schoenberg <email@hidden>
- Date: Tue, 30 Nov 2004 15:14:34 -0600
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden