loadNibNamed instantiating too many of my objects
loadNibNamed instantiating too many of my objects
- Subject: loadNibNamed instantiating too many of my objects
- From: Dave Camp <email@hidden>
- Date: Mon, 12 Aug 2002 14:16:18 -0700
I've got an app with two nib files, a main window and a preferences
window. The main window nib has an instance of a mainWindowController
class, and the preferences window nib has an instance of a
preferencesWindowController class.
When I create the preferences window from the mainWindowController
using:
[NSBundle loadNibNamed:@"Preferences.nib" owner:self];
a second copy of my mainWindowController is instantiated (in addition
to the preferencesWindowController). The two classes are not related at
all, and do not show up in the other's nib files. The classes don't
reference each other at all.
Any thoughts on why this is happening?
Since I'm new to Cocoa, this is probably something I'm doing wrong, any
tips would be appreciated.
Thanks,
Dave
_______________________________________________
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.