Getting accessoryView setting into runOperationModalForWindow.
Getting accessoryView setting into runOperationModalForWindow.
- Subject: Getting accessoryView setting into runOperationModalForWindow.
- From: Kevin Bracey <email@hidden>
- Date: Sat, 8 Apr 2006 11:55:49 +1200
Hi Guys,
Another design question...
-(void)printClass:( NSPrintInfo *)thePrintInfo{
UWPrintView *holdPrintView; //*** this View does the print layout as
in Aaron Hillegass Cocoa Programming for OSX
holdPrintView = [[UWPrintView alloc] initWithClass:myClass
printInfo:thePrintInfo ];
NSPrintOperation *holdPrintOp = [NSPrintOperation
printOperationWithView:holdPrintView printInfo:thePrintInfo];
[holdPrintOp setAccessoryView:printView]; //*** This is a View with
some a checkbox and popup that effect the details on the report NOT
CURRENTLY USED
[holdPrintOp setCanSpawnSeparateThread:YES];
[holdPrintOp runOperationModalForWindow:[self window] delegate:self
didRunSelector:@selector( printOperationDidRun: success: contextInfo: )
contextInfo:NULL];
}
The printing all works, but I want to add some options set by the user
in the print dialogue.
My printView shows up in the print panel and that works very well too.
But how on earth do I get the information from that printView
AccessoryView into my UWPrintView holdPrintView?
I got tantalizingly close with - (void)beginDocument but getting the
info from AccessoryView into the NSPrintInfo is also a mystery.
Cheers
Kevin
_______________________________________________
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