Re: Printing two views, together
Re: Printing two views, together
- Subject: Re: Printing two views, together
- From: Joe Lester <email@hidden>
- Date: Wed, 4 Dec 2002 17:35:37 -0500
"Combining" the two specific views you refer to seems like an awkward
approach for what you're trying to accomplish, although I suppose it's
possible.
It seems like your second idea, subclassing NSTableView, is the way to
go. I'm actually working on a subclass that does exactly what you need
(as far as I can tell from your description). When I finish it in the
next day or so, I can post a link to the source if there's any
interest. It sounds like it might be a good learning tool for you if
nothing else.
If others have done similar NSTableView subclasses, I'd love to take a
look.
From: Andrew Merenbach <email@hidden>
I've combed through NSView and NSPrintInfo, without success, to try to
find a way to "concatenate" two views.
My situation is that I have a database application with an NSTableView
subclass, which I'd like to print. Everything's working well, except
that the printouts are a bit confusing without column titles.
I've come up with a method that creates an NSTextView object and fills
it with the column titles, properly tabulated (based on the current
widths of the columns in my table view), but I can't seem to "connect"
it to my tableView so they'll print together.
(What would be even better would be to override my table view's
subclass [or to subclass my table view's header view] so that it would
print the table column header without the cell background--is this at
all feasible? And would it be possible to get the column headers
printed at the top of the data list for each page?)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.