Re: Disable spell checking menu in NSTextField
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.