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 (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 arch...@mail-archive.com

Reply via email to