• 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
window not loading in screen saver bundle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: fast text
  • Next by Date: [ANN] Tabularity, a data browser for OS X
  • Previous by thread: Delegate weirdness in pref pane
  • Next by thread: [ANN] Tabularity, a data browser for OS X
  • Index(es):
    • Date
    • Thread