FROM : Hamish Allan
DATE : Tue Feb 19 20:24:23 2008
On Feb 19, 2008 6:00 PM, Daniel Child <<email_removed>> wrote:
> - (id) init
> {
> data = [[NSMutableDictionary alloc] init];
> return self = [super initWithWindowNibName: @"Step1Window"];
> }
Always call [super init...] at the start of your init method.
Otherwise, your superclass could be overwriting the ivar called "data"
with, e.g., an immutable NSDictionary.
Hamish
DATE : Tue Feb 19 20:24:23 2008
On Feb 19, 2008 6:00 PM, Daniel Child <<email_removed>> wrote:
> - (id) init
> {
> data = [[NSMutableDictionary alloc] init];
> return self = [super initWithWindowNibName: @"Step1Window"];
> }
Always call [super init...] at the start of your init method.
Otherwise, your superclass could be overwriting the ivar called "data"
with, e.g., an immutable NSDictionary.
Hamish
| Related mails | Author | Date |
|---|---|---|
| Daniel Child | Feb 19, 19:00 | |
| Hamish Allan | Feb 19, 20:24 | |
| Bill Bumgarner | Feb 19, 20:46 | |
| Keary Suska | Feb 19, 22:14 | |
| Hamish Allan | Feb 19, 23:39 | |
| Jonathan Hess | Feb 20, 04:12 | |
| Daniel Child | Feb 21, 03:29 |






Cocoa mail archive

