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

Subclassing NSPopUpButton


  • Subject: Subclassing NSPopUpButton
  • From: "Raglan T. Tiger" <email@hidden>
  • Date: Fri, 08 May 2015 10:42:43 -0600

I have subclassed NSPopUpButton.  In the subclass  drawRect:dirtyRect is called ... I did this just to check that the subclass is properly implemented.

In the subclass keyDown:theEvent is not being called.  How does one override this method for an NSPopUPButton subclass?

The purpose for overriding keyDown:theEvent is to create my own search string to find items in the menu.



-rags




_______________________________________________

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


  • Follow-Ups:
    • Re: Subclassing NSPopUpButton
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: orderFront: 10.10 vs 10.9
  • Next by Date: Re: orderFront: 10.10 vs 10.9
  • Previous by thread: Re: orderFront: 10.10 vs 10.9
  • Next by thread: Re: Subclassing NSPopUpButton
  • Index(es):
    • Date
    • Thread