• 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
Printing in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing in Cocoa


  • Subject: Printing in Cocoa
  • From: "Peesapaty Ramesh" <email@hidden>
  • Date: Fri, 5 Apr 2002 17:37:10 +0530

Hi All,
i am trying to print contents of a window on click of a button on
the window .
i have used NSPrintOperation to print . when i click on the button on the
window
i get the print window and when i click on print button it doesn't
print anything .
I am pasting the code for reference . Is there anything that i am
missing ?

*****************************************************************************************
NSWindow *window;

- (IBAction)printWindow:(id)sender{
NSPrintOperation *printOperation = [NSPrintOperation
printOperationWithView:(NSView *)window];
[printOperation runOperationModalForWindow: [self window]
delegate: nil didRunSelector: NULL contextInfo: NULL];
}
*****************************************************************************************

Ramesh
_______________________________________________
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.

  • Prev by Date: Common UI
  • Next by Date: Re: why Obj-C
  • Previous by thread: Re: Common UI
  • Next by thread: Re: why Obj-C -> IB evolution
  • Index(es):
    • Date
    • Thread