• 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: How can I get the reference to Cancel and Print buttons in Print Dialogue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How can I get the reference to Cancel and Print buttons in Print Dialogue (From: Siva Manne <email@hidden>)

  • Prev by Date: Re: Implementing key view loop in custom NSView
  • Next by Date: RE: Cmd+key shortcuts not being sent to NSWindow on Tiger
  • Previous by thread: How can I get the reference to Cancel and Print buttons in Print Dialogue
  • Next by thread: Testing if a NSPipe has available data
  • Index(es):
    • Date
    • Thread