• 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
setAccessoryView not responding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • RE: setAccessoryView not responding
      • From: "Jonathan E. Jackel" <email@hidden>
  • Prev by Date: Re: Can EPS be drawn?
  • Next by Date: Re: Newbie question: chrash on [tableview reloadData]
  • Previous by thread: opening an old document without a file
  • Next by thread: RE: setAccessoryView not responding
  • Index(es):
    • Date
    • Thread