Re: How to share data between application and Printing Plug-In Module?
Re: How to share data between application and Printing Plug-In Module?
- Subject: Re: How to share data between application and Printing Plug-In Module?
- From: Sergey Mastykash <email@hidden>
- Date: Thu, 13 May 2004 11:49:09 +0300
Thank you for your reply.
I'm creating printing dialog extension to overload one of the standard
printing dialog panes.
My custom pane is a part of Cocoa's host application. This means that
dialog resource that contains a view for the pane and it's controller
are instantiated in the host application.
In Cocoa there is no means to overload standard pane, you can only add
your custom accessory view.
So I need to pass my view to PDE module.
There is an example (PDE project) that demonstrates how to create PDE
module and how to share data between host application and the plug-in.
But in this case application and module are created using Carbon.
Application creates PMPrintSession variable which is automatically
passed to PDE's initialize function. There is several methods to pass
extra data using print session variable. You described one of it
(PMGetPageFormatExtendedData and PMSetPageFormatExtendedData use
pageformat which PDE can get through print session variable).
But in my application I don't use Carbon's print manager, instead of
creating PMPrintSession variable I create NSPrintOperation object,
therefore I can't use any carbon's function.
Although I don't create Carbon's print session variable directly in my
application - PDE's initialize function receives it! May be there is a
way to get PMPrintSession variable from NSPrintOperation object?
On May 12, 2004, at 7:49 PM, Fritz Anderson wrote:
>
You've provided very little information, such as what kind of printing
>
plugin you are dealing with; whether you have access to the source
>
code of the plugin, the application, or both; or what kind of
>
information you want to exchange.
>
>
PMGetPageFormatExtendedData() and PMSetPageFormatExtendedData() would
>
seem to be a start on what you need, assuming you have access to both
>
the application and to a print-dialog plugin. Look in the Carbon
>
Printing Manager Reference.
>
>
-- F
>
>
On 12 May 2004, at 5:55 AM, Sergey Mastykash wrote:
>
>
> I have Cocoa application and printing plugin that was created with
>
> Carbon.
>
> I need to pass data from host application to printing plugin.
>
> Can anyone give sample or advice of how to do it?
>
>
>
--
>
Fritz Anderson
>
Consulting Programmer
>
http://resume.manoverboard.org/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.