• 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: Disable spell checking menu in NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disable spell checking menu in NSTextField


  • Subject: Re: Disable spell checking menu in NSTextField
  • From: Arthur Clemens <email@hidden>
  • Date: Wed, 11 Jun 2003 14:42:14 +0200

I found my own answer. It's really too simple, but I overlooked it
somehow:
in my custom editor, I can override rightMouseDown and tell the view to
show it's menu:

- (void)rightMouseDown:(NSEvent *)theEvent
{
[NSMenu popUpContextMenu:[self menu] withEvent:theEvent
forView:self];
}


Arthur Clemens




On woensdag, jun 11, 2003, at 12:43 Europe/Amsterdam, Arthur Clemens
wrote:

> I really have a hard time getting my search input box to NOT show the
> spell checking menu. What I want is to show a custom menu on
> right-click, and this works except that the custom items are always
> shown below "Ignore Spelling" and "Learn Spelling". I don't need the
> spell checking there and it looks annoying.
>
> It is strange that this happens with a NSTextField, as I don't see
> this behavior with a NSTextView.
>
> I have a custom field editor (which IS a NSTextView of course).
>
> Arthur Clemens
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >Disable spell checking menu in NSTextField (From: Arthur Clemens <email@hidden>)

  • Prev by Date: Re: troubling article : a few real argument of my own.
  • Next by Date: Re: Cocoa vs Carbon
  • Previous by thread: Disable spell checking menu in NSTextField
  • Next by thread: Change User ID
  • Index(es):
    • Date
    • Thread