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

NSPrintPanel


  • Subject: NSPrintPanel
  • From: "danchik" <email@hidden>
  • Date: Wed, 10 Mar 2010 15:53:54 -0800

Hello,

Is there a way to access/modify information in the print panel while the dialog is up?

Lets say the task is to modify the currently selected paper size based on the available sizes when ever the user changes a printer selection.

Is there a way to be notified of events on the PrintPanel (for example when the user picks a printer, or changes number of copies ) (while the print dialog box is still up)
and, further, once notified that printer has changed, to change something in that dialog (selected paper size for example) programatically while that dialog is still up?

So code to bring up a panel is :

//....
NSPrintInfo *printInfo = [NSPrintInfo sharedPrintInfo];
NSPrintPanel *printPanel = [NSPrintPanel printPanel];

int res = [printPanel runModalWithPrintInfo:printInfo];
// will do actuall printing now ...


is there anything I can subclass or become an observer of before calling runModalWithPrintInfo?


I also tried with adding accessory pannel, but the only times I would get called were from actions on my own panel or when the panel was going away (to save the editing chages) but never when the printer or anything else on the print panel changed

Thank You
Dan
_______________________________________________

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

  • Prev by Date: [SOLVED] Re: Custom cell wanted
  • Next by Date: Re: Can you obtain the NSRuleEditor localized display?
  • Previous by thread: Group Table View Edit Mode Animation - iPhone
  • Next by thread: How to debug this error on closing a document?
  • Index(es):
    • Date
    • Thread