Object is nil although alloc'ed and init'ed
Object is nil although alloc'ed and init'ed
- Subject: Object is nil although alloc'ed and init'ed
- From: Michael Becker <email@hidden>
- Date: Thu, 25 Mar 2004 14:54:52 +0100
Hi!
I am really lost with this one. Here's the deal.
XTCIObject is defined as a subclass of NSObject.
XTCIUser is defined as a subclass of XTCIObject.
Both do not override any -init methods.
Here's my code:
XTCIUser *user = [[ XTCIUser alloc] init];
NSLog(@"This is the user: %@", user);
The output:
This is the user: (null)
How can that be? (There are no warnings, everything is declared nicely
and all the necessary header files are imported...)
Regards,
Michael
_______________________________________________
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.