Error on SDK 4.0 - when [Object createRemote] > "Data Formatters temporarily unavailable " ...
-
Hippie Hacker
- Assigned user set to Joshua Vickery
- Milestone order changed from 0 to 0
I'm having a similar problem. I looked at the github, website and mailing list. All appear to be dead for more than a year. Am I missing something? This looks really cool! What happened?
-
Hippie Hacker
I see some activity here I must be looking in the wrong places.
-
lukaso
In the file Serialization/XML/NSDictionary+XMLSerializableSupport.m replace/patch the method below with this version. This will fix the XML version of the code, but not the JSON version, and in a very ugly way. But then what Apple did, is very ugly, so this is at best a workaround. Also, please feel free to improve my code, as I was not trying to do this in the best way.
- (NSString *)toXMLElementAs:(NSString *)rootName excludingInArray:(NSArray *)exclusions withTranslations:(NSDictionary *)keyTranslations andType:(NSString *)xmlType { NSMutableString* elementValue = [NSMutableString string]; NSArray * iOS4Exclusions = [NSArray arrayWithObjects: @"accessibilityFrame", @"accessibilityHint", @"accessibilityLabel", @"accessibilityLanguage", @"accessibilityTraits", @"accessibilityValue", @"isAccessibilityElement", nil]; id value; NSString *propertyRootName; for (NSString *key in self) { // Create XML if key not in exclusion list if(![exclusions containsObject:key] && ![iOS4Exclusions containsObject:key]) { value = [self valueForKey:key]; propertyRootName = [[self class] translationForKey:key withTranslations:keyTranslations]; [elementValue appendString:[value toXMLElementAs:propertyRootName]]; } } return [[self class] buildXmlElementAs:rootName withInnerXml:elementValue andType:xmlType]; }To explain why the bug is occurring: For some reason which I can't understand at all, in the iOS4 SDK, Apple has decided to add accessibility properties to all NSObjects, when really all they want to make sure is that all UIKit objects have them. They do this via categories. For example, in the UIKit.framework/Headers/UIAccessibility.h they have added the following:
@interface NSObject (UIAccessibility) ... @property(nonatomic) BOOL isAccessibilityElement; ...Personally, I think this is shocking coding, but maybe I don't understand something.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
