Re: newbie NSMutable dictionary subclass question

2008-11-17 Thread Jean-Daniel Dupas
Can the value part of a key-value pair in an NSMutableDictionary be a literal NSString, like @"name"? It would seem so, because this works or at least doesn't crash: NSMutableDictionary *bobo; bobo = [[NSMutableDictionary alloc] init]; [bobo setValue:@"root" forKey:@

Re: newbie NSMutable dictionary subclass question

2008-11-17 Thread Mike Abdullah
As a self-professed newbie, you almost certainly shouldn't be subclassing NSMutableDictionary. Can I ask your reasons for doing so? On 17 Nov 2008, at 00:25, Bob Sabiston wrote: Can the value part of a key-value pair in an NSMutableDictionary be a literal NSString, like @"name"? It would s

Re: newbie NSMutable dictionary subclass question

2008-11-16 Thread Chris Suter
> Why does that crash when the first does not? Are subclasses required to > have member variables, or can they just have new functions? Mine don't have > any variables, maybe that is the problem? See:

newbie NSMutable dictionary subclass question

2008-11-16 Thread Bob Sabiston
Can the value part of a key-value pair in an NSMutableDictionary be a literal NSString, like @"name"? It would seem so, because this works or at least doesn't crash: NSMutableDictionary *bobo; bobo = [[NSMutableDictionary alloc] init]; [bobo setValue:@"root" forKey:@"na