Hi all:
I have two questions, pls help me

1.
When i implement printing with cocoa,
an NSPrintOperation object is created to control the print operation (see
the NSPrintOperation class description for details).
NSPrintOperation * printOp = [NSPrintOperation
printOperationWithView:viewToPrint printInfo:printInfo];
viewToPrint is my NSView for printing.
I augment printpanel display by adding a custom NSView using the
addAccessoryController: method.
I put one button into the view. When user presses the button,i want to do
some logic and notices viewToPrint the update.Because the print data
changed.So the preview in the print dialog should be updated.
How can i do this, let the viewToPrint update with  printOp or other
methods?


2.
when we implement printing with cocoa,
an NSPrintOperation object is created to control the print operation .
NSPrintOperation * printOp = [NSPrintOperation
printOperationWithView:viewToPrint printInfo:printInfo];
[printOp setShowsPrintPanel:YES];
[printOp runOperation];

I got a native printing dialog, So how can I cancel this programtically? Is
it possiable?


Thanks & Best Regards!

Lei Debin
_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to