Re: How to disable Spellcheck on NSTextView
Re: How to disable Spellcheck on NSTextView
- Subject: Re: How to disable Spellcheck on NSTextView
- From: Satoshi Matsumoto <email@hidden>
- Date: Fri, 08 Apr 2005 09:21:59 +0900
Hi Hebin,
on 05.4.8 6:25 AM, Hebin Wei at email@hidden wrote:
> NSTextView support Spellcheck on it contextual menu by default. Is there any
> way I can disable this feature? My application need to remove this feature.
You can customize the NSTextView's context menu overriding following class
method:
+ (NSMenu *)defaultMenu
Overridden by subclasses to return the default pop-up menu for instances of
the receiving class. NSView’s implementation returns nil.
+ (NSMenu *)defaultMenu
{
NSMenu *contextMenu;
//Set default NSTextView
contextMenu =[NSTextView defaultMenu];
// remove some menu items that you don't want to display
......
.......
return contextMenu;
}
Satoshi
-----------------------------------------------------
Satoshi Matsumoto <email@hidden>
816-5 Odake, Odawara, Kanagawa, Japan 256-0802
_______________________________________________
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