Mailing Lists: Apple Mailing Lists

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

RE: Newbie PDE Questions



Hi, Marc:
I am alse playing with sample printer module and pde.
Your email reminded me sth. I need change the printer name from HP Deskjet
xxx to our own printer in RasterDefine.h.
and I put printer module and pde whole directory into
/Library/Printer/SamplePM directory.
plug in the printer usb cable.
clcik printer center add button. Then the sample pcl driver shows up.
so does the printerQuality dialog.

Regards,

Sean
--- Marc Stibane <email@hidden> wrote:
> (Since I am not getting my own post for more than 12 hours, I repost it)
>
> Rajesh wrote:
>
>http://developer.apple.com/techpubs/macosx/CoreTechnologies/graphics/Printin
> >g/ExtPrintingDialogs/Integration/chapter_8_section_9.html
> >Check this out and the whole chapter and make the code changes in the
> PM
> >accordingly.
>
> The only such function (Create Printing Dialog Extensions Paths) I could
>
> find in the whole project is in RasterModule.cp, included in the main
> SamplePM. So it seems that the PM should be put into the folder
> "SamplePM" inside of /Library/Printers.
> (BTW, what is the shortcut of "Find Selection" (cmd-H in MPW, THink C,
> CodeWarrior etc.) in PB, now that cmd-H means Hide?)
>
> However, this function only builds a path for the "PrintQuality.plugin",
>
> not for the "OutputBins.plugin".
>
> Also the Installation Location settings in the project are
> "/Library/Printers/Sample", not "/Library/Printers/SamplePM". Doesn't
> matter, since PB only puts its built targets inside the build folder and
>
> seems to ignore this setting. (What is it good for anyway?)
>
> But no matter where I manually copy the built 3 plugins, whether into
> /Library/Printers/Sample or into /Library/Printers/SamplePM, nothing
> shows up in the print dialog (I tried TextEdit and PB).
>
>
> Could it be that this PM-PDE only works with a HP printer? I notice
> CFSTR("DESKJET 8") in the Initialize() function. I remember having read
> that the Initialize function should test whether the correct printer is
> selected and return a value which is used to determine whether the PDE
> should be loaded or not.
>
> Which brings me to the biggest question: How do you debug a PDE? If I
> could set a breakpoint inside the Initialize() function, I might get a
> clue whether the code gets called at all...
>
> Marc Stibane
> Fesh! email@hidden
> Gotzkowskystr. 15 tel +49-30-3990 2690
> 10555 Berlin, Germany mobil +49-162-912 9388
>
>
> In a world without walls and fences,
> who needs windows and gates?
> _______________________________________________
> 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.


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
_______________________________________________
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.

References: 
 >RE: Newbie PDE Questions (From: Marc Stibane <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.