i have a custom view object called "windowColor" in my NIB... i'm trying to make the main window include the custom view for display when the window opens, but i can't get it to work. i've created an outlet in the mainWindow and connected it to the custom view object...the window starts up fine, but the custom view is not being displayed within the window... any help would be great:
Code:
#import <Cocoa/Cocoa.h>
#import "windowColor.h"
@interface mainWindow : NSWindow {
IBOutlet windowColor *fullscreenView;
}
@end
-------
#import "mainWindow.h"
#import <Carbon/Carbon.h>
@implementation mainWindow
- (id) initWithContentRect: (NSRect) contentRect
styleMask: (unsigned int) aStyle
backing: (NSBackingStoreType) bufferingType
defer: (BOOL) flag
{
if (self = [super initWithContentRect: contentRect
styleMask: NSBorderlessWindowMask
backing: bufferingType
defer: flag])
{
SetSystemUIMode(kUIModeAllHidden, 0);
[self setFrame:[[NSScreen mainScreen] visibleFrame] display:YES animate:NO];
[self setContentView:fullscreenView];
SetSystemUIMode(kUIModeAllSuppressed, 0);
}
return self;
}
@end