if (StringClass == Nil) StringClass = [NSString class];
value = self;
- buf = [_keyPath cString];
- if (index(buf, '.') == NULL)
+ buf = (const unsigned char *)[_keyPath cString];
+ if (index((const char *)buf, '.') == NULL)
/* no point contained .. */
return [self valueForKey:_keyPath];
NSString *key;
key = (start < i)
- ? [StringClass stringWithCString:&(buf[start]) length:(i - start)]
+ ? [StringClass stringWithCString:(const char *)
+ &(buf[start]) length:(i - start)]
: @"";
if ((value = [value valueForKey:key]) == nil)
NSString *key;
key = (start < i)
- ? [StringClass stringWithCString:&(buf[start]) length:(i - start)]
+ ? [StringClass stringWithCString:(const char *)
+ &(buf[start]) length:(i - start)]
: @"";
return [value valueForKey:key];
}
//[self handleTakeValue:_value forUnboundKey:_key];
}
-- (id)valueForKey:(id)_key {
+- (id)valueForKey:(NSString *)_key {
id obj;
if (_key == nil) // TODO: warn about nil key?
[self addEntriesFromDictionary:dictionary];
}
-- (void)takeValue:(id)_value forKey:(id)_key {
+- (void)takeValue:(id)_value forKey:(NSString *)_key {
if (_value == nil) _value = [NSNull null];
[self setObject:_value forKey:_key];
}