• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: context menu for text in textfields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >context menu for text in textfields (From: 김경옥 <email@hidden>)

  • Prev by Date: Re: iSight/Address Book Image Selection UI
  • Next by Date: RE: Swapping isa's (was Re: Hex Edit controls (resknife))
  • Previous by thread: context menu for text in textfields
  • Next by thread: cross development on Jaguar
  • Index(es):
    • Date
    • Thread