getting rid of text-field contextual menu
getting rid of text-field contextual menu
- Subject: getting rid of text-field contextual menu
- From: Christopher Corbell <email@hidden>
- Date: Wed, 21 May 2003 11:30:41 -0700
I'm trying to get rid of the system text-editing contextual menu for the
edit fields in my window - the user can't change the font and the fields
are for simple search terms and the like so the spelling commands etc.
are more a distraction than a feature.
My approach was to get the field editor from the main window in its
awakeFromNib method, and call
[theEditor setMenu:nil];
This mostly did the trick - all of the CM items went away... except two!
Ignore Spelling
Learn Spelling
(A separator also trails these two items).
Is this the best we can do at getting rid of this menu when it isn't
appropriate? Or is there a better way to handle this?
Thanks for advice,
Christopher
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.