newbie help on printing
newbie help on printing
- Subject: newbie help on printing
- From: Steve Gran <email@hidden>
- Date: Thu, 22 Dec 2005 16:40:43 -0800
I'm new to programming in general so excuse me for being so
clueless. But I've got a very simple little app that just has one
view (a tableview using bindings) and I don't understand how to
implement printing the tableview. The examples I've seen show using
something like:
-(IBAction)print:(id)sender
{
NSPrintInfo *printInfo = [NSPrintInfo sharedPrintInfo];
NSPrintOperation *printOp;
printOp = [NSPrintOperation printOperationWithView:aView
printInfo:printInfo];
[printOp setShowPanels:YES];
[printOp runOperation];
}
but I don't have something I can put into "aView" because I'm using
bindings so I don't have anything in code like "IBOutlet NSTableview
*tableview" in which to use. I probably just don't understand it.
So if someone can just sort of explain the concept and how I
implement a print button for my tableview I sure would appreciate it.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden