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

RE: setAccessoryView not responding


  • Subject: RE: setAccessoryView not responding
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Thu, 21 Nov 2002 14:48:49 -0500

> 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'

Which is probably right. customePrintView is an instance of the accView
class. That class does not have instance method called printAccessoryView,
at least according to the debugger.

You want to create a new view and then set it as the accessory view.
Instead of the second line try:

newView = [[[customePrintView alloc] init] autorelease];

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

References: 
 >setAccessoryView not responding (From: David Wu <email@hidden>)

  • Prev by Date: allocWithZone not working with Class Clusters?
  • Next by Date: (no subject)
  • Previous by thread: setAccessoryView not responding
  • Next by thread: Re: Newbie question: chrash on [tableview reloadData]
  • Index(es):
    • Date
    • Thread