Printing question
Printing question
- Subject: Printing question
- From: Alex Nygren <email@hidden>
- Date: Thu, 11 Apr 2002 11:37:11 -0700
Hi,
I seem to be having a problem with printing. In my document based
application, I have multiple objects: NSTableView, NSTextField and a derived
object from NSView called DataView, which draws graphically the data
represented in NSTableView. In the DataView class I have implemented the
method:
-(void)printShowingPrintPanel:(BOOL) flag;
I am not sure that this is the correct thing to do. From what I could tell,
this is what the book, Cocoa Programming for Mac OSX, says, but it is not
too clear.
I consulted the online documentation, and from there, it looked like my
Document class had to implement the method:
- (void)documentPrint:sender
though this is not being executed when a user selects Print from the pull
down.
What DOES happen though is that the print dialog is printing (at least in
print preview) the object that has the focus in the Document class, either
the NSTableView, or the NSTextField but never DataView. What's really
interesting is that in the case of NSTextField, it only seems to "print" the
currently visible rows on the screen, and not the entire data set. I really
don't want the NSTextField printing at all, only DataView. However DataView
doesn't print at all.
So, finally, the question:(!) How do I get only the DataView object in a
specific Document to print from the print pull down menu?
I know the above is long, but I figure it helps to give more info than less.
Thanks.
Alex Nygren
_______________________________________________
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.