How to know user clicks [print] button in cocoa PDE
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 15:21:36 +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