Re: How can I get the reference to Cancel and Print buttons in Print Dialogue
Re: How can I get the reference to Cancel and Print buttons in Print Dialogue
- Subject: Re: How can I get the reference to Cancel and Print buttons in Print Dialogue
- From: David Duncan <email@hidden>
- Date: Mon, 10 Aug 2009 10:55:55 -0700
On Aug 9, 2009, at 11:20 PM, Siva Manne wrote:
In the Cocoa PDEPlugin, i need to disable/enable Cancel and Print
Buttons
for some conditions. I am not able to get the reference for those
buttons.
You can't get references to them. If you want to prevent printing from
a PDE, then you should implement -shouldPrint and return NO when you
don't want the user to be allowed to print. You should never disallow
the user from canceling the dialog (consider them canceling the dialog
as canceling whatever you are doing).
The OutputBins2PDE sample (the PasswordPDE specifically) demonstrates
this.
<http://developer.apple.com/samplecode/OutputBins2PDE/index.html>
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
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