Re: Controlling default field editor contextual menu??
Re: Controlling default field editor contextual menu??
- Subject: Re: Controlling default field editor contextual menu??
- From: Nicholas Riley <email@hidden>
- Date: Mon, 11 Nov 2002 09:15:37 -0600
- Mail-followup-to: Robert Miller <email@hidden>, Cocoa Development <email@hidden>
On Mon, Nov 11, 2002 at 09:24:54AM -0500, Robert Miller wrote:
>
Does anyone out there know if it is possible to control the default
>
field editor so that no contextual menu is permitted when it is active
>
? I tried using setUsesFontPanel:NO but that has no effect. I want to
>
be able to control the field editor's contextual menu such that it is
>
not displayed at all or with different items other than the default. Is
>
this possible without actuall yoverriding the default field editor and
>
supplying my own text object ?
Nope. Subclass NSTextView and return nothing, or whatever menu you
want, for -[NSView menuForEvent:]. What made you think that setting
anything to do with the font panel would help?
--
=Nicholas Riley <email@hidden> | <
http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
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.