Hi Kyle, thank you.
I am just approaching this method.
I create a parentView, then from the API beginPageInRect I replace its
content with the current page's view.
The problem is that when I move to the parentView the page's view currently
displayed on the screen, this page disappears from the window. I though to
put on the window a temporary image captured earlier, but its sound as a
dirty trick. Have you a better idea?


Regards
-- Leonardo


> Da: Kyle Sluder <k...@ksluder.com>
> Data: Mon, 9 Jun 2014 10:25:00 -0700
> A: Leonardo <mac.iphone....@gmail.com>
> Cc: "cocoa-dev@lists.apple.com" <cocoa-dev@lists.apple.com>
> Oggetto: Re: printOperationWithView multiple views
> 
> On Jun 9, 2014, at 10:05 AM, Leonardo <mac.iphone....@gmail.com> wrote:
>> 
>> I have a document with several pages. Each page has its own custom view.
>> When I print it using printOperationWithView: I must pass here one only
>> view. But I have several views.
>> If I pass the first page's view, then when I click on the preview next page
>> button, nothing happens.
>> And there is no way to change the view from within the API beginPageInRect
>> nor from rectForPage.
>> How to achieve that?
> 
> Arrange your views in a parent view. This means you will likely need to create
> separate views for printing than you use for on-screen display.
> 
> --Kyle Sluder


_______________________________________________

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

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

Reply via email to