• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Printing two views, together
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Weird NSDrawer error...
  • Next by Date: Re: Newbie Quickie
  • Previous by thread: Printing two views, together
  • Next by thread: Moving window
  • Index(es):
    • Date
    • Thread