Peter Friese

Developer Advocate / Mobile Developer / Public Speaker

Annotated Links for Week 33

| Comments

This week’s annotated links are more coding- and code-related than last week. We’ll have a look at some data mapping frameworks for Objective-C, a way to set up your projects in a faster, more reproducible way and – as iOS 7 is around the corner, a feature comparison of iOS 7 on the various devices out there.

iOS 7 Compatibility Chart

With the release of iOS 7 just around the corner, you might be wondering which devices you should test your apps on in order to make sure you cover all required combinations of services that might or might not be available to your app (yes, iOS 7 is one of those releases that won’t make all features available on all devices). Cult of Mac has a nice overview chart, worth checking out.

Crafter – Easily Setup Xcode Projects

Github has made it really easy to check out new libraries or demos: just clone the repo and off you go. But what about creating new projects? If you find yourself constantly creating new projects, adjusting the build configuration to suit your needs, adding a Podfile for CocoaPods, then Crafter might be for you. You can configure it with your defaults, while at the same time staying flexible by adding options. Definitely worth a try.

Object Mapping in Objective-C

Most apps require you to map data from a text-based presentation (mostly JSON or XML) to Objective-C objects. Chances are you’ve written mapping code by hand in at least one of your projects. “Its’s just one or two classes, how hard can it be?”, was probably what you thought when you set out to implement you home-grown mapping. YOu might have ended up with either pulling your hair out while maintianing your code whenever the API team decided to implement some “minor changes” or using a full-blown framework like RestKit that gave you more than you needed. If you just need to map data without the need for all the fancy add-ons like automatic CoreData persistence, in-memory and persistent caching and so on, you should have a look at the following frameworks. The all follow different approaches, some apply automagic mapping by matching field names, others by using an internal DSL to help you express your mapping. Take a look yourself and decide based on what you need for your current project.

  • KZPropertyMapper – uses an internal DSL to express data mappings
  • NSObject-ObjectMap – uses introspection to map properties directly unto properties.
  • KeyValueObjectMapping – Uses a combination of both introspection and configuration to map data unto objects,
  • ObjectMapper – Uses introspection and a callback method to map data.

And finally… Instacodes

Did you ever wonder how to create those geeky looking source code screenshots that look like you used a camera to take a picture of your screen from an angle? Well, here’s a tool that let’s you create those screenshots without the need to take out your camera: Instacodes

That’s it for this week, I hope you liked it. Feel free to send suggestions for next week!

Chains image by Haya Bernitez