• 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: Ask for NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ask for NSTextField


  • Subject: Re: Ask for NSTextField
  • From: Nick Zitzmann <email@hidden>
  • Date: Thu, 21 May 2009 21:57:30 -0600


On May 21, 2009, at 12:58 AM, star red wrote:

When a user presses a right mouse button on the NSTextField, a context menu
will appear.
I want that a context menu will not appear at this time.

Why? That's really non-standard.

How can ?


The first thing I'd try is setting the text field's menu to nil. If that doesn't work, then subclass NSTextField and override - menuForEvent: to return nil.

Nick Zitzmann
<http://www.chronosnet.com/>



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Ask for NSTextField (From: star red <email@hidden>)

  • Prev by Date: Re: Deallocating cocoa distant objects.
  • Next by Date: Re: Affine transform not being applied to subviews
  • Previous by thread: Ask for NSTextField
  • Next by thread: Getting other application's window/document name
  • Index(es):
    • Date
    • Thread