Re: Newbie: Problem with second nib.
Re: Newbie: Problem with second nib.
- Subject: Re: Newbie: Problem with second nib.
- From: Tommy Nordgren <email@hidden>
- Date: Sun, 17 Sep 2006 15:11:17 +0200
On Sep 17, 2006, at 2:09 PM, Marcus Pedersén wrote:
Hi!
I have made a second nib and when I send messages to the controller
class nothing happens.
cont = [[nibController alloc] init];
1) Cocoa classes conventionally are given a name beginning with a
capital letter.
2) Check that reciever of alloc is a class and not an object.
if (![NSBundle loadNibNamed:@"secondNib" owner:cont]) {
2) Have your window by any chance an object of your controller class
it it?
if so delete it. Your controller should be represented by the symbol
File's Owner
in the nib. Delete the controller from the nib, set the class of
File's owner to your controller class
and set up Connections again.
NSLog(@"Error loading Nib for document!");
}
else{
[cont hideDateTime: YES];
};
In the method hideDateTime: BOOL, I hide a couple of NSTextFields
but this does not happen with the above code. If I asign a button
in my secondNib the same call to hideDateTime: it works fine.
I can not get the hang of it.
Please, help!
Many thanks!
Marcus
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40chello.se
This email sent to email@hidden
------------------------------------------------------
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden