Skip navigation.
 
mlreally need help!! -> costume view not showing up in the print pane
FROM : David Wu
DATE : Thu Nov 21 21:56:46 2002

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_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlreally need help!! -> costume view not showing up in the print pane David Wu Nov 21, 21:56
mlRe: really need help!! -> costume view not showing up in the print pane Scott Anguish Nov 21, 22:18