• 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: Marco Biasini <email@hidden>
  • Date: Fri, 8 Apr 2005 09:42:46 +0200


On 08.04.2005, at 02:21, Satoshi Matsumoto wrote:

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 even disable spell checking in Interface Builder. There's a check box called "enable spell-checking" (or similar).


Cheers

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:
email@hidden


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
  • Follow-Ups:
    • Re: How to disable Spellcheck on NSTextView
      • From: Dan Saul <email@hidden>
References: 
 >Re: How to disable Spellcheck on NSTextView (From: Satoshi Matsumoto <email@hidden>)

  • Prev by Date: Re: NSTypesetter and NSLineSweepDirection
  • Next by Date: Re: ADC Core Data article
  • Previous by thread: Re: How to disable Spellcheck on NSTextView
  • Next by thread: Re: How to disable Spellcheck on NSTextView
  • Index(es):
    • Date
    • Thread