On Mar 19, 2010, at 3:03 AM, Jenny M wrote:

> 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!
> 

You should be able to. Also, remember that text views do support tables, so 
that might work for you as well.

The Apple docs also discuss custom pagination.

The example I just updated and posted on my iDisk and pointed to the original 
poster draws each desk in a separate page (on screen they’re all in a scroll 
view). So it does custom pagination.


> Aha, you're that Scott. I have your book open in Oreilly now. :) Glad
> to know you're here!

I was that Scott. Now I’m at Apple, so that Scott is no more. Erik lurks here 
though. I just happened to be the criminal that wrote that chapter in the book.

The Alternate pagination example may also be convertible, I don’t even remember 
what it does. The big issue is the nibs moving to xibs. you need to do that 
manually. And make a new project and copy all the source over.

> Thanks,
> Jenny
> 
> 
> On Thu, Mar 18, 2010 at 11:26 PM, Scott Anguish <sc...@cocoadoc.com> 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 (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