NSPrintOperation accessory view question
NSPrintOperation accessory view question
- Subject: NSPrintOperation accessory view question
- From: Leon McNeill <email@hidden>
- Date: Fri, 3 Oct 2003 16:51:26 +0100
Hello all,
I have an NSDocument-based app which is currently printing quite
nicely, but I want the user to be able to control a few parameters of
the printing process. This is the NSDocument Cocoa printing process as
I understand it:
1) in response to printShowingPrintPanel:, set up an NSView hierarchy
of exactly what I want to print
2) initialize an NSPrintOperation with the above NSView
3) attach a (different) NSView containing a few NSButtons to the
NSPrintOperation via setAccessoryView:
4) invoke
runOperationModalForWindow:delegate:didRunSelector:contextInfo: to
start the print sheet (and eventually print, if the user desires)
5) while in the above modal sheet, if the user hits any of my
accessoryView's buttons, the button actions will let me know so I can
modify the printable NSView hierarchy as necessary.
Is this right? Do I *have* to create the NSView hierarchy before I
know what adjustments the user might want to perform in my accessory
view? It seems like my only alternative is to shoehorn my own
sheet/panel in response to the user asking to print, in order to ask
them what app-specific tweaks they want BEFORE then starting the above
numbered process without bothering with an accessory view.
Thanks in advance for any insight.
--
Leon McNeill email@hidden www.lairware.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.