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: OS X - preferences menu and pdf files



Tom,

I got it all to work, and would like to submit the code to call PMSessionSetDestination back to ClubMacApp, but first I had a couple of questions.

- the call to PMSessionSetDestination fails under OS X on a CFM based app - I had to jump through some hoops to make the call (find and load the bundle, find the proc ptr, call the proc ptr). What compiler switch would I use to bypass all of this if it's a Mach-0 build?
- what is the status of doing Mach-0 builds in MacApp - I noticed there is a Mach sample project, but even it actually has a CFM based project file for codewarrior.
- I tried to turn off the user interface by calling printJob->SetNoDialog(true) because you really don't want the print dialogs to come up when generating pdf, but instead of simply turning off the user interface, I get an error dialog that some resources can't be found and the print fails.

Alan

On Monday, May 27, 2002, at 12:54 PM, Tom Becker wrote:

On 5/27/02 7:45 AM, Alan Dail wrote:
The other thing that I'll need to do in this app is generate .pdf files
from our views. Has anyone done this before? I want to set it up so
that drawing into my TView subclass generates a .pdf, just like you draw
into the TView to print. I expect this will be an OS X only feature.
Any pointers on how to do this would be appreciated.

This requires session printing support which is now in ClubMacApp. You'll also need to set the destination to PDF. Then just print your view.

http://developer.apple.com/techpubs/macosx/Carbon/graphics/CarbonPrintingManager/
CPM_Concepts/cpm_chap3/Saving_a_Do__a_PDF_File.html

Regards,

Tom

--
Tom Becker "Within C++, there is a much smaller and
Object-Oriented Propeller Head cleaner language struggling to get out."
<email@hidden> -- Bjarne Stroustrup


----
Support cancer research - invest in Peregrine Pharmaceuticals
http://www.peregrineinc.com/
----
Alan Dail, Senior Software Engineer
http://homepage.mac.com/alandail
email@hidden
email@hidden
330-345-5953
_______________________________________________
macapp-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macapp-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: OS X - preferences menu and pdf files (From: Tom Becker <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.