• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Print method with Tiger questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Can I create a Cocoa palette based on Carbon?
  • Next by Date: Re: Can I create a Cocoa palette based on Carbon?
  • Previous by thread: Re: Can I create a Cocoa palette based on Carbon?
  • Next by thread: Setting the Desktop Background: Sample Not Working?
  • Index(es):
    • Date
    • Thread