Re: loadNibNamed instantiating too many of my objects
Re: loadNibNamed instantiating too many of my objects
- Subject: Re: loadNibNamed instantiating too many of my objects
- From: Dave Camp <email@hidden>
- Date: Mon, 12 Aug 2002 14:42:58 -0700
Never mind... stupid user mistake. Someone else on the project hooked
up the File's Owner thingy incorrectly to the wrong object. Maybe if I
knew more about Cocoa I'd have noticed that sooner...
Dave
On Monday, August 12, 2002, at 02:16 PM, Dave Camp wrote:
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.
_______________________________________________
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.