williamc
未読、2009/02/09 23:17:362009/02/09投稿者に返信する場合はログインしてください
転送する場合はログインしてください
このグループ内のメッセージを削除する権限がありません
メッセージを報告するにはログインしてください
メールアドレスがこのグループでは匿名化されているか、メンバーのメールアドレスを表示する権限がないため、元のメッセージを表示できません
To: ObjectiveResource
There's a bug in the code that results in certain class names not
being serialized properly when doing a findRemote call on the object
ID. This bug existed iin the object_resource zip file that I
downloaded:
FromXMLElementDelegate.m (Around line 52)
//Start of the root object
else if (parsedObject == nil && [elementName isEqualToString:
[self.targetClass xmlElementName]]) {
NSLog(@"starting on the root object");
self.parsedObject = [[[self.targetClass alloc] init] autorelease];
[self.unclosedProperties addObject:[NSArray arrayWithObjects:
[elementName camelize], self.parsedObject, nil]];
self.currentPropertyName = [elementName camelize];
}
elementName is not being camelized before being compared to
xmlElementName. To fix this elementname needs to be camelized:
else if (parsedObject == nil && [[elementName camelize]
isEqualToString:[self.targetClass xmlElementName]]) {
This is a pretty significant bug that prevents XML from serializing
properly.