Printing in Cocoa
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.