Re: contextual menu and NSTextField
Re: contextual menu and NSTextField
- Subject: Re: contextual menu and NSTextField
- From: Ondra Cada <email@hidden>
- Date: Fri, 13 Sep 2002 21:57:56 +0200
On Friday, September 13, 2002, at 09:03 , Arthur Clemens wrote:
Bu there seems to be another issue. When I create a NSMenu instance in IB
and connect it to a NSTextField, it won't pop up in test mode. When I
connect it to other elements such as a NSTextView or a NSMovieView, the
menu works correctly.
NSTextField inherits from NSView, so it should inherit the menu
funcionality too.
Just guessing -- haven't tested it -- but I'd suspect that NSTextField
replaces the inherited functionality by its own, which is why it does not
work. If I am right (not proven yet!), you have to subclass (or at the
very least category) the -menuForEvent: yourself.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc
_______________________________________________
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.