• 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: disabling grammar checking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disabling grammar checking


  • Subject: Re: disabling grammar checking
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 2 Jul 2009 16:41:29 -0700

At 6:57 PM -0700 6/29/09, Martin Wierschin wrote:
i'm not happy that the framework is changing the name of my menu item from "Show SpellingS" (as i've specified in IB) to "Show Spelling and Grammar". is there some way to globally "fix" this? (i know i can provide my overrides of showGuessPanel: and validateMenuItem: in specific field editors, etc., but i'm hoping for something that doesn't require me to provide a custom field editor only to fix this.)

I think the best solution is to change the menu item's action to a selector only you know about, eg: "showKensSpellingPanel:". You could add a category to NSTextView that simply forwards the action to the normal "showGuessPanel:". Validation wouldn't work though, unless you want to swizzle the validator method for NSTextView.


Perhaps it would be best to have something higher up the responder chain exclusively pick up your custom action, say an NSApplication delegate. That could inspect the first responder and do validation as necessary.

this worked fine. thanx, ken


It's an unfortunately messy thing any way you do it, especially for such a trifle.

agreed! :-(


~Martin


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: User interface validation doesn't work, right?
  • Next by Date: Re: Private copy not working correctly
  • Previous by thread: Re: Changing content of object inside NSMutableArray
  • Next by thread: Possible NSPredicateEditor bug
  • Index(es):
    • Date
    • Thread