• 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
newbie help on printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: newbie help on printing
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: KVO one-step listening but two-step notifying?
  • Next by Date: Re: newbie help on printing
  • Previous by thread: KVO one-step listening but two-step notifying?
  • Next by thread: Re: newbie help on printing
  • Index(es):
    • Date
    • Thread