Re: Printing an NSTableView
Re: Printing an NSTableView
- Subject: Re: Printing an NSTableView
- From: Dan Stein <email@hidden>
- Date: Tue, 25 Jan 2005 09:57:04 -0800
On Jan 25, 2005, at 9:06 AM, Austin Sarner wrote:
All NSViews can be printed... but is there any relatively simple way
to print an NSTableView and have the text wrap properly instead of
just printing what's visible?
Thanks a bunch
_______________________________________________
I think the brute force way is to create a custom print view, laid out
the way you would like, and draw the strings from
your table view within it. You have to do some calculations to lay out
the "columns" in the custom view.
Wrapping a long cell within one of those columns would involve some
additional work, of course.
I can think of a couple of different ways I might try to do that, but I
have not ever had to implement such a thing.
This produces a crude "printout" of the table contents, laid out like a
table, but is not a printed NSTableView.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden