Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Printing Multiple Views

Printing Multiple Views
Thread Tools
Junior Member
Join Date: Sep 2003
Location: Nowhere, Missouri
Status: Offline
Reply With Quote
Mar 17, 2004, 09:17 PM
 
I have a program in development that nearly requires printing in order to be useful. It needs to be able to print two views, an NSTableView and an NSTextView. These views must be on the same page. Is there a way to do this other than having to read everything into one view and printing from there? Forgive me if this is common knowledge, but I can't find anything on the subject.
     
Professional Poster
Join Date: Sep 1999
Location: Ottawa, ON, Canada
Status: Offline
Reply With Quote
Mar 18, 2004, 10:48 AM
 
That's exactly what you would do. Create a subclass of NSView and draw your data from both views into that. Then print that view.

Apple's printing docs have a section describing how to do it.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:03 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2