My file owner isn't getting connected
My file owner isn't getting connected
- Subject: My file owner isn't getting connected
- From: Donald Brown <email@hidden>
- Date: Wed, 08 May 2002 15:38:16 -0500
I'm working on a project where I have a Window controller class
LayoutController, which is in a nib Layout.nib as the file owner. Here's
the code to create it:
+(LayoutController*)sharedLayout
{
static LayoutController* _layoutController = nil;
if (!_layoutController)
{
_layoutController = [[LayoutController allocWithZone:[self zone]]
init];
}
return _layoutController;
}
-(id)init
{
self = [self initWithWindowNibName:@"Layout"];
if (self)
[self setWindowFrameAutosaveName:@"Layout"];
return self;
}
I can use the shared layout to make the window appear, but even after
windowDidLoad has been called, none of my outlets are connected (they are
all nil) and clicking on a button does not call the method that I've linked
the button to in the Interface builder. The Nib file has only the file
owner (which is of type LayoutController) and the window itself. I've
checked and rechecked my connections and attributes, and I don't see
anything wrong. Anyone ever have something similar happen, and how did they
fix it?
Donald
--
Donald Brown
email@hidden
http://www.eamontales.com
We have met the enemy and he is us - Pogo
_______________________________________________
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.