Mailing Lists: Apple Mailing Lists

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

Adding a postscript printer using a custom backend programmatical ly



Hi,

I've added a "virtual printer" (with the advanced option of the printer
list) that uses a custom backend (this backend calls an application
registered with a bundle signature). This "virtual printer" is a generic
postscript printer because we need the postscript file in the application.

I've done that manually and it works very well but I would like to known how
I can add the printer programmatically.

I've tried to do that on the basis of the USBIOM/USBPBM examples from the
"Developer/Examples/Printing/Printer/" folder but I've problems. I've added
a call to the "AddPrinterToList" method in the "InitPrinterList" method of
the "CBrowserListView" class but the "AddPrinterToList" method needs a
PrintCenter lookup reference for the printer that I've not. To test it I've
put a string for this parameter. The printer appears then in the printer
list (when we click on the add button of the print center) but it isn't
added automatically in the list of available printers and I can't either add
it manually (probably because I had not given the right PrintCenter lookup
reference for the printer).

Am I using the right example?
If so, how can I solve my problems?
If not, what am I supposed to do?

I'm working with Cocoa - Objective C (Mac OS X 10.2)

Thank you!

Best regards,

Thierry Milisen



DISCLAIMER: This e-mail message and any attachment are intended for the sole
use of the recipient(s) named above and may contain information that is
confidential and/or protected by intellectual property rights. Any use of
the information contained herein (including, but not limited to, total or
partial reproduction, communication or distribution in any form) by other
persons than the designated recipient(s) is prohibited. If you have received
this e-mail in error, please notify the sender either by telephone (+32 81
87 67 29) or by e-mail and delete the material from any computer. Oce
Software Laboratories Namur is responsible neither for the correct and
complete transfer of the contents of the sent e-mail, nor for the receipt on
due time. This e-mail message does not bring about a contractual obligation
for Oce Software Laboratories.Thank you for your cooperation. For further
information about Oce Software Laboratories please visit our website at
www.osl.be
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/printing/email@hidden

This email sent to email@hidden



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.