• 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
Re: printer user friendly paper name to internal paper name?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: printer user friendly paper name to internal paper name?


  • Subject: Re: printer user friendly paper name to internal paper name?
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 20 Apr 2009 14:06:24 -0700

for the archives... i received the following off-list and it is
exactly what i was looking for.

Just an idea, why not use:

PMPrinterGetPaperList

and then loop through them all and compare what you have to:

PMPaperCreateLocalizedName

you can get the PMPrinter from:

PMSessionGetCurrentPrinter

which you can get from

-[NSPrintInfo PMPrintSession]




At 2:24 PM -0700 4/17/09, email@hidden wrote:
my app is fully recordable and scriptable. when the user changes
the page setup, i am able to successfully record it and indicate
the paper name chosen via -[NSPrintInfo localizedPaperName].

however, if the user attemps to write a script (either directly or
by modifying a previously recorded script), i need to validate any
paper name the user has specified. i don't see how to go from a
user specified paper name to an internal name such that i can call
-[NSPrintInfo setPaperName:].

have i missed something?

thanx,
ken

_______________________________________________

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: NSArray merge sorting
  • Next by Date: Re: Quartz Comp on iPhone
  • Previous by thread: Re: printer user friendly paper name to internal paper name?
  • Next by thread: Advanced Core Data and Inverse Relationships Question
  • Index(es):
    • Date
    • Thread