Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PMPrinterGetDescriptionURL returns 1030



Hello,

PMPrinterGetDescriptionURL returns an undocumented (or at least illusive) status of
1030. Any idea what 1030 means?

Curiously, if I remove a previous call in my code to PMSessionSetCurrentPrinter, I get
no error from PMPrinterGetDescriptionURL.

PMPrinter pmPrinter = nil;
PMPrintSession printSession = nil;
CFURLRef urlRef;
CFStringRef cfPrinterName = (CFStringRef) nsPrinterName;
// cfPrinterName is the name of a printer I have converted (cast) from an NSString.

status = PMCreateSession(&printSession);
status = PMSessionSetCurrentPrinter(printSession, cfPrinterName);
status = PMSessionGetCurrentPrinter(printSession, &pmPrinter);
status = PMPrinterGetDescriptionURL(pmPrinter, kPMPPDDescriptionType, &urlRef);

As I said, if I take out the PMSessionSetCurrentPrinter line, PMPrinterGetDescriptionURL
returns kPMNoError.

Gonzalo
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.