Re: Problem with multiple NIBs
Re: Problem with multiple NIBs
- Subject: Re: Problem with multiple NIBs
- From: Tim Hewett <email@hidden>
- Date: Tue, 14 Oct 2003 17:37:00 +0100
Stephane,
On Tuesday, Oct 14, 2003, at 16:53 Europe/London, Stiphane Sudre wrote:
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.
That is how I started out but having seen the TextEdit Preferences
example I deleted the instantiation of the class and set the
File's Owner custom class to be my class. Same problem still
exists!
Cheers,
Tim.
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.