Re: NSPrintInfo and NSPageLayout
Re: NSPrintInfo and NSPageLayout
- Subject: Re: NSPrintInfo and NSPageLayout
- From: Ken Thomases <email@hidden>
- Date: Fri, 07 Oct 2011 05:35:28 -0500
On Oct 7, 2011, at 5:05 AM, Torsten Curdt wrote:
>> The -runModal method uses the shared print info object, which can be obtained with +[NSPrintInfo sharedPrintInfo]. You can change the shared print info with +[NSPrintInfo setSharedPrintInfo:], if you have reason to. Alternatively, you can use -[NSPageLayout runModalWithPrintInfo:] to use a different print info for the page layout dialog.
>>
>> In any case, you need to use the same print info object for the NSPrintOperation so that it can use that for the NSPrintPanel. That's how changes made in the page setup dialog get communicated to the print dialog.
>
> So I am also in charge of serializing the settings across restarts?
Yes.
> Thanks a lot, Ken.
You're welcome. I'm glad I could help.
Cheers,
Ken
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden