• 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: How to disable Spellcheck on NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to disable Spellcheck on NSTextView
      • From: Marco Biasini <email@hidden>
References: 
 >How to disable Spellcheck on NSTextView (From: Hebin Wei <email@hidden>)

  • Prev by Date: Re: Application Icon Blues
  • Next by Date: iSight & Cocoa - SGDataProc
  • Previous by thread: Re: How to disable Spellcheck on NSTextView
  • Next by thread: Re: How to disable Spellcheck on NSTextView
  • Index(es):
    • Date
    • Thread