Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Object is nil although alloc'ed and init'ed



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.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.