setAccessoryView not responding
setAccessoryView not responding
- Subject: setAccessoryView not responding
- From: David Wu <email@hidden>
- Date: Thu, 21 Nov 2002 11:16:40 -0800
Hi guys,
I have run into a weird problem. I have created a NSView subclass and
trying to use that as a custome view and add to the printing pane. The
code for the printing job is as follows:
in .h file:
@interface AppController : NSObject
{
IBOutlet BigLetterView *inLetterView;
IBOutlet accView2 *customePrintView;
}
@end
in .m file:
- (IBAction)print:(id)sender
{
NSView *newView;
NSPrintOperation *printOp;
printOp = [NSPrintOperation printOperationWithView:inLetterView];
newView = [customePrintView printAccessoryView];
[printOp setAccessoryView:newView];
[printOp setShowPanels:YES];
[printOp runOperation];
}
when i compile and run i got the 'accView2' does not respond to
'printAccessoryView' and at runtime there is no custome pane shown up
at the pringting pane pop-up menue...
Any ligth on this, would be great!!
Thanks guys
_______________________________________________
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.