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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to