Re: Contextual menu for Text fields/views?
Re: Contextual menu for Text fields/views?
- Subject: Re: Contextual menu for Text fields/views?
- From: Thomas Lachand-Robert <email@hidden>
- Date: Mon, 20 Dec 2004 09:36:49 +0100
Le 20 déc. 04, à 05:36, Seth Willits a écrit :
On Dec 19, 2004, at 1:16 PM, Thomas Lachand-Robert wrote:
If you set the menu (setMenu or just use the outlet) of any view,
it'll use that menu as the contextual menu.
No it doesn't. I have set a menu in IB to a NSBox and a NSTextField.
I get no contextual menu in the box, and I get the "standard"
contextual menu for text views in the thext field.
Sure it does. Make sure you have the NSTextView selected (not the
NSScrollView) and simply connect the menu outlet to whatever menu you
want. It'll appear at the bottom of the contextual menu for the field.
The same goes for NSBox, but the menu is only shown if you
control-click on the box's title, not anywhere in it's background.
I don't see where there is a NSTextView in a NSTextField. I will try to
hook it directly in the field editor in code. For the NSBox, thanks for
the tip: that would explain why it doesn't work for me, since my box
has no title. I don't understand why it doesn't work for the background
of the box, though?
Thomas Lachand-Robert
********************** email@hidden
<< Et le chemin est long du projet à la chose. >> Molière, Tartuffe.
_______________________________________________
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