Re: Printing an NSDocument
Re: Printing an NSDocument
- Subject: Re: Printing an NSDocument
- From: Jenny M <email@hidden>
- Date: Fri, 19 Mar 2010 00:03:13 -0700
Yes, for the most part the columns will line up, but I'll need some
headers, footers, and some dividers. So if I have two sets of data,
I'd want a header, then one set, then another, then a footer. I do
understand the need to keep track of data for pagination.
I was thinking of trying WebKit, I haven't looked at it yet. Is there
a way I can just write all the info into an HTML view, not displayed
to the user, and call print? That would really help with automatically
figuring out column placement!
Aha, you're that Scott. I have your book open in Oreilly now. :) Glad
to know you're here!
Thanks,
Jenny
On Thu, Mar 18, 2010 at 11:26 PM, Scott Anguish <email@hidden> wrote:
>
> On Mar 18, 2010, at 7:17 PM, Jenny M wrote:
>
>> Sorry, no answer, I'm just having a similar issue. I need to print
>> columns of text, and all the examples I see indicate a manual creation
>> and placement of EACH line of text in an NSRect inside the view. ...
>> Is there really no better way to place objects in the view?
>>
>>
>
> if the columns of text match line for line, why not use two NSTextViews side by side? You’ll still likely need to handle pagination, but you don’t have to draw each one.
>
> A WebKit view may also be another option.
>
_______________________________________________
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