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, kvic...@pobox.com 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 (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