• 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: Contextual menu for Text fields/views?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Contextual menu for Text fields/views?


  • Subject: Re: Contextual menu for Text fields/views?
  • From: Seth Willits <email@hidden>
  • Date: Sun, 19 Dec 2004 20:36:12 -0800

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.



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic


"Shyness is so quiet and reserved yet such a treasonous villain."
------------------------------------------------------------------------ ---


_______________________________________________
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


  • Follow-Ups:
    • Re: Contextual menu for Text fields/views?
      • From: Thomas Lachand-Robert <email@hidden>
References: 
 >Contextual menu for Text fields/views? (From: Thomas Lachand-Robert <email@hidden>)
 >Re: Contextual menu for Text fields/views? (From: Seth Willits <email@hidden>)
 >Re: Contextual menu for Text fields/views? (From: Thomas Lachand-Robert <email@hidden>)

  • Prev by Date: Re: -(NSString *)description method not called in Cocoa app
  • Next by Date: Re: Disclosure Triangles
  • Previous by thread: Re: Contextual menu for Text fields/views?
  • Next by thread: Re: Contextual menu for Text fields/views?
  • Index(es):
    • Date
    • Thread