Skip navigation.
 
mlRe: *** -[NSCFDictionary setObject:forKey:]: mutating method sent to immutable object
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