• 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
PMSessionGetCurrentPrinter issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: selecting a row of a UITableView programatically
  • Next by Date: Re: Suppressing visibility in the Dock
  • Previous by thread: Re: How to filter the NSOpenPanel with "Recommended Applications"
  • Next by thread: removeObjectAtArrangedObjectIndexPath EXC_BAD_ACCESS
  • Index(es):
    • Date
    • Thread