Re: Problem with multiple NIBs
Re: Problem with multiple NIBs
- Subject: Re: Problem with multiple NIBs
- From: Stéphane Sudre <email@hidden>
- Date: Tue, 14 Oct 2003 17:53:39 +0200
Just a guess: you have an instance of the class in the nib instead of
the "File's owner" just being said to be of your class.
On Tuesday, October 14, 2003, at 05:17 PM, Tim Hewett wrote:
I've just tried adding a new NIB file to my project for the first
time and I'm having a few problems. My code calls
[NSBundle loadNibNamed:@"SelectionPanel" owner:self]
in the new class associated with the panel defined in
the new NIB file, when the panel is to be displayed, but the
attributes (such as a pointer to the panel) do not get filled in,
they have a zero value. In IB the class is defined as having
these outlets/attributes and they are connected ok, but
still the NIB loading does not appear to fill in the attributes
to allow methods to be called on them.
The loadNibNamed:owner: call returns TRUE, not an error,
and the class's awakeFromNIB method get called (in fact
it gets called twice, odd), but at present all it does it printf
the fact that it has been called.
So I'm defeated so far. I have tried to base the panel on the
preferences one in the TextEdit sample in /Developer/Examples,
as far as I can see it is setup the same, and yet mine doesn't
work...
Help!
Tim.
_______________________________________________
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.