readfromdata

readFromData:ofType:error: called before loading nib so I can't use my IBOutlets D:<

I have an application that uses NSDocument to open files. I have an NSView in my NIB, and I'd like to set it's size according to the image opened: - (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError { NSLog("FOO"); // Load image // ... // Change size [mainView setFrameSize:NSMakeRect(ima...