• 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
How to know user clicks [print] button in cocoa PDE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to know user clicks [print] button in cocoa PDE


  • Subject: How to know user clicks [print] button in cocoa PDE
  • From: "Jeff Chen" <email@hidden>
  • Date: Fri, 8 Sep 2006 16:38:12 +0800

Hi All,

I met with a problem when I made PDE with cocoa:

I can't catch the event that user presses [Print] button, in carbon PDE, I can get the ControlRef of [Print] button and install event handler to it. However, in cocoa, I can only get the NSButton * pointer of [Print] button,  but I can't install event handler to NSControl in cocoa. I can only use the event in NSResponder. But NSResponder doesn't provide the event that handles the clicking of [Print] Button.

Who knows how I can catch the event that user clicks [print] Button in cocoa? Or who knows how to install event handler to a special NSControl in cocoa?

Best Regards
Jeff Chen
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to know user clicks [print] button in cocoa PDE
      • From: Mike Abdullah <email@hidden>
  • Prev by Date: How to know user clicks [print] button in cocoa PDE
  • Next by Date: Re: How do I get the NSApplication of other running applications?
  • Previous by thread: How to know user clicks [print] button in cocoa PDE
  • Next by thread: Re: How to know user clicks [print] button in cocoa PDE
  • Index(es):
    • Date
    • Thread