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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to