PMSessionGetCurrentPrinter issue
PMSessionGetCurrentPrinter issue
- Subject: PMSessionGetCurrentPrinter issue
- From: Shilpi Aggarwal <email@hidden>
- Date: Thu, 27 May 2010 23:15:54 +0530
- Acceptlanguage: en-US
- Thread-topic: PMSessionGetCurrentPrinter issue
On Mac printing, I am facing an issue with getting the current printer name for the session.
The recommended call to do the same is PMSessionGetCurrentPrinter<http://www.devworld.apple.com/mac/library/documentation/GraphicsImaging/Reference/CorePrintRef/Reference/reference.html#//apple_ref/c/func/PMSessionGetCurrentPrinter>, but this call is always returning me the default printer set in the System preferences.
I have even tried using the following code snippet:
PMSessionSetCurrentPMPrinter(session, printer);
PMSessionGetCurrentPrinter(session, &printer);
No matter whatever printer I set during PMSessionSetCurrentPMPrinter<http://www.devworld.apple.com/mac/library/documentation/GraphicsImaging/Reference/CorePrintRef/Reference/reference.html#//apple_ref/c/func/PMSessionSetCurrentPMPrinter> call, it always returns the default printer in PMSessionGetCurrentPrinter call.
Any ideas if I am missing something here?
Thanks,
-Shilpi
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden