Skip navigation.
 
mlRe: Totally confused: NSObject not init'ing
FROM : Erik M. Buck
DATE : Wed Dec 01 21:26:42 2004

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 ?

Related mailsAuthorDate
mlTotally confused: NSObject not init'ing Michael Becker Dec 1, 16:51
mlRe: Totally confused: NSObject not init'ing John Stiles Dec 1, 20:32
mlRe: Totally confused: NSObject not init'ing Steve Bird Dec 1, 20:36
mlRe: Totally confused: NSObject not init'ing Amul Goswamy Dec 1, 20:43
mlRe: Totally confused: NSObject not init'ing Shawn Erickson Dec 1, 20:44
mlRe: Totally confused: NSObject not init'ing Guy English Dec 1, 20:45
mlRe: Totally confused: NSObject not init'ing Erik M. Buck Dec 1, 21:26
mlRe: Totally confused: NSObject not init'ing Guy English Dec 1, 22:11
ml[SOLVED] Re: Totally confused: NSObject not init'ing Michael Becker Dec 2, 16:11