Print method with Tiger questions
Print method with Tiger questions
- Subject: Print method with Tiger questions
- From: Frédéric Testuz <email@hidden>
- Date: Sun, 9 Oct 2005 11:09:52 +0200
Hi,
I'm in the process of implementing printing in my application and I
have some questions with the new print method in Tiger.
In the documentation, the NSDocument method printShowingPrintPanel:
is deprecated, I tried to find info about the new methods but I only
find the description of :
- (void)printDocumentWithSettings:(NSDictionary *)printSettings
showPrintPanel:(BOOL)showPrintPanel delegate:(id)delegate
didPrintSelector:(SEL)didPrintSelector contextInfo:(void *)contextInfo
and
- (NSPrintOperation *)printOperationWithSettings:(NSDictionary *)
printSettings error:(NSError **)outError
I think I have to override printOperationWithSettings:error: to
create the NSPrintOperation, set the print view and return it, OK ?
But when I tried this, printSettings is empty, is it normal? Where is
the rapport with NSPrintInfo? And I can't set the delegate and
didPrintSelector, so I can't release the NSPrintOperation after the
printing (and the auxiliary print view).
Then my last thought was that I have to override - (IBAction)
printDocument:(id)sender, call
printDocumentWithSettings:showPrintPanel:delegate:didPrintSelector:conte
xtInfo: myself, and override printOperationWithSettings:error:. Is
this the correct way?
Thanks,
Frédéric _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden