moredip/Frank — pull request #74 by krakas (2012-02-27 00:38:03+00:00)
Title: Updated View serialization code

Hey Guys,

Here's the pull request with the updated JSON serialization code.

To sum it up in a nutshell:
- View are now serialized on configuration based schemes. I've added a "ViewAttributeMapping.plist" file to the frank_static_resources bundle. This file a simple ClassName->array of attribute names
- DumpCommand now loads this plist file, figures out the actual classes from it and keeps that in an internal NSDictionary
- On dump, the DumpCommand will build @selector from the attributes and perform them on the views.
- The JSON logic for special cases (CGRects etc) is pretty much the same but has been extracted to a static class to avoid unneeded dependency on DumpCommand.

Looks like its working great, much much faster, Symbiote is happy with it.

I haven't integrated NSJSONSerialization when possible because I got bigger fish to fry these days (experimenting things on the gestures side).

/kra