Re: Totally confused: NSObject not init'ing
Re: Totally confused: NSObject not init'ing
- Subject: Re: Totally confused: NSObject not init'ing
- From: "Erik M. Buck" <email@hidden>
- Date: Wed, 1 Dec 2004 15:26:42 -0500
When code is not behaving as expected, step through it in the debugger.
That is what debuggers are for.
In the specific case of
order = [[ PCProductsOrder alloc] init];
NSLog(@"order: %@", order);
outputting order: (null)
Clearly [[ PCProductsOrder alloc] init]; is returning nil.
This could be because [PCProductsOrder alloc] returned nil or because -init
returned nil.
Are you sure that you are returning self from PCProductsOrder's
implementation of -init ?
Why did you show us code for PCProductsOrderController when it is probably a
problem with PCProductsOrder ?
Where and how is the order variable defined ?
_______________________________________________
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