NSPrintPanel
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