window not loading in screen saver bundle
window not loading in screen saver bundle
- Subject: window not loading in screen saver bundle
- From: "Dean G. Tresner" <email@hidden>
- Date: Mon, 25 Nov 2002 19:38:06 -0500
I am trying to implement the configuration sheet for a screen saver.
The ScreenSaverView subclass has an NSWindowController member called
prefPanelController. It's method to generate the sheet is this:
- (NSWindow*)configureSheet {
if (!prefPanelController) {
prefPanelController = [[ILPrefPanelController alloc]
initWithWindowNibName:@"PrefsPanel"];
NSLog(@"%@", [prefPanelController windowNibName]);
}
if ([prefPanelController window] == nil)
NSLog(@"window not allocated");
return [prefPanelController window];
}
The nib is just the boilerplate NSPanel that comes up in IB. The file's
owner is set to ILPrefPanelController in IB.
The output is:
2002-11-25 19:32:25.468 System Preferences[449] PrefsPanel
2002-11-25 19:32:25.478 System Preferences[449] window not allocated
I'm sure this is something simple, but I'm just not seeing the problem
here. Does initWithWindowNibName: only work for application bundles?
Thanks,
Dean
_______________________________________________
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.