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 ?
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 mails | Author | Date |
|---|---|---|
| Michael Becker | Dec 1, 16:51 | |
| John Stiles | Dec 1, 20:32 | |
| Steve Bird | Dec 1, 20:36 | |
| Amul Goswamy | Dec 1, 20:43 | |
| Shawn Erickson | Dec 1, 20:44 | |
| Guy English | Dec 1, 20:45 | |
| Erik M. Buck | Dec 1, 21:26 | |
| Guy English | Dec 1, 22:11 | |
| Michael Becker | Dec 2, 16:11 |






Cocoa mail archive

