| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
(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?
| References: | |
| >RE: Newbie PDE Questions (From: Marc Stibane <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.