So I have a custom view and I am adding printing support. I've set it
up like this:

 https://gist.github.com/919d845b2e1b5becbaac

where I create a custom instance of my view, setup the NSPrintInfo and
then run the NSPrintOperation.

Now there are a couple of things I couldn't quite figure out yet.

1) Currently I set the width of the view to the page size width minus
the left and right margin. Frankly speaking I have no clue if that is
the right thing to do. Or is imageablePageBounds the one to use?

2) When I configure the page layout with [[NSPageLayout pageLayout]
runModal] the layout settings don't make it over to my print dialog.
For example I tried to change the orientation but when I get the print
dialog it's still in portrait. It's not that surprising as I don't see
the connection between the two yet - but how do I make the connection?

cheers,
Torsten
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to