• 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
really need help!! -> costume view not showing up in the print pane
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

really need help!! -> costume view not showing up in the print pane


  • Subject: really need help!! -> costume view not showing up in the print pane
  • From: David Wu <email@hidden>
  • Date: Thu, 21 Nov 2002 12:56:46 -0800

in AppController.h file:

/* AppController */

#import <Cocoa/Cocoa.h>
@class BigLetterView;
@class accView;

@interface AppController : NSObject
{

IBOutlet BigLetterView *inLetterView;
IBOutlet accView *customePrintView;

}
@end


in AppController.m file:


#import "AppController.h"
#import "BigLetterView.h"
#import "accView.h"

@implementation AppController

- (IBAction)print:(id)sender
{
NSPrintInfo *printInfo = [NSPrintInfo sharedPrintInfo];
NSPrintOperation *printOp;
printOp = [NSPrintOperation printOperationWithView:inLetterView];

customePrintView = [[NSView alloc] init];
[printOp setAccessoryView:customePrintView];
[printOp setShowPanels:YES];
[printOp runOperation];
}

@end

accView is the NSView object class I designed and is archived in the nib file of MainMenu.nib using IB, and generated files for the object, but I didn't add any code to it.
I also have a outlet, names customePrintView, in the AppController that connect to the accView object ( customePrintView points to accViewas as shown in the .h file)

The rest is just as descibed in the AppController.m above)

After I compile and run, I can see the application's name shown up in the pop-up menu of the print pane, but when I select it the costume view (the accView Object) is not shown up!

Do I need to need to call certain method or methods to draw the accessory view before I set the accessory view??
OR
the customePrintView is pointing at a empty view??

Thnx again 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: really need help!! -> costume view not showing up in the print pane
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: Storm in a water glass? (Was: Table View Blues (summary))
  • Next by Date: Re: Storm in a water glass? (Was: Table View Blues (summary))
  • Previous by thread: Re: Storm in a water glass? (Was: Table View Blues (summary))
  • Next by thread: Re: really need help!! -> costume view not showing up in the print pane
  • Index(es):
    • Date
    • Thread