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

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.
References: 
 >Re: contextual menu and NSTextField (From: Arthur Clemens <email@hidden>)

  • Prev by Date: Re: Bilingual shenanigans
  • Next by Date: Re: Inter-Application Communication in Cocoa ?
  • Previous by thread: Re: contextual menu and NSTextField
  • Next by thread: ppplib.c, ppplib.h, ppp_msg.h
  • Index(es):
    • Date
    • Thread