4 ms·
Most likely, their native client is blindly adding the objective c properties to the POST request, by using introspection. Apple is not adding anything to the
by mobwill 14y ago
Most likely, their native client is blindly adding the objective c properties to the POST request, by using introspection. Apple is not adding anything to the POST request. This is similar to the problems people used to run into when the javascript object prototype was overridden and everyone's code would break because they were just doing
for (var prop in object)
- jcromartie 14y agoIndeed. Why in the world would Apple inject this into POST requests? http://developer.apple.com/library/ios/documentation/uikit/reference/UIAccessibility_Protocol/Introduction/Introduction.html#//apple_ref/occ/instp/NSObject/shouldGroupAccessibilityChildren http://developer.apple.com/library/ios/documentation/uikit/r...
- coob 14y agoWilling to bet it's a bug.
- lancefisher 14y agoI'm sure this is what's happening. Their serializer is perhaps filtering out properties they knew about, but shouldGroupAccessibilityChildren is a new property on the UIAccessibility Protocol which is adopted by NSObject. A good short-term fix is to update the web service, but they should update it to only use the POST parameters it expects. When they release an update to the iOS app, they can fix their serializer to only serialize the properties they need. Apple isn't injecting this - their code is.