• 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 NSTableView and more
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Printing NSTableView and more


  • Subject: Re: Printing NSTableView and more
  • From: "Jay Rimalrick" <email@hidden>
  • Date: Sat, 20 Dec 2003 01:52:54 -0500

I am trying to get a NSTableView to print without the scroll bars but with the
column headers. The code below prints part of my NSTableView without scroll
bars or headers.

1) how do I get the headers to print without the scroll bars?
2) when the NSTableView prints it crops off any columns that don't print on a
page. It prints everything vertically but doesn't print all of the data
horizontally.
3) how can I print information I have stored in strings before the NSTableView
prints?

NSView *aprintView = [[NSApp mainWindow] contentView];
NSArray * viewsToPrint = [aprintView subviews];
NSView *theTextView = [[viewsToPrint objectAtIndex: 0] documentView];
[theTextView print: self];

Thanks in advance,
jay

---------- Original Message ----------------------------------
From: "Jay Rimalrick" <email@hidden>
Reply-To: <email@hidden>
Date: Fri, 19 Dec 2003 18:13:12 -0500

>I have a NSTableView that I print by simply using
>
>[myTableView print: self];
>
>but this does not print the column headers, why not?
>
>Also I would like to print some information before I print the NSTableView
but have it all appear on the same page ... how do I go about this?
>
>Any and all information is greatly appreciated.
>
>-jay
>
>
>
>
>________________________________________________________________
>Sent via the WebMail system at 1st.net
>_______________________________________________
>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.
>




________________________________________________________________
Sent via the WebMail system at 1st.net
_______________________________________________
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.

  • Follow-Ups:
    • Re: Printing NSTableView and more
      • From: p3consulting <email@hidden>
  • Prev by Date: Re: [Possibly OT] OSX 10.1, 10.2 and 10.3 on one PowerBook G4
  • Next by Date: Re: Moving a subview within a view.
  • Previous by thread: Printing NSTableView and more
  • Next by thread: Re: Printing NSTableView and more
  • Index(es):
    • Date
    • Thread