365Cocoa

A snippet of Objective-C code per day, 365 days long.
Written by Pieter Omvlee, developer and owner of Bohemian Coding.

Mar 28

Day 30: a lazy day

As the title suggests, it’ll be a lazy day for 365Cocoa. I’m not even going to fully write out today’s episode - partly because its to simple. The thing is that I’ve spent all day with Sketch and my head it a bit dizzy with code. But a promise is a promise so there we are.

I find that quite often I’m putting integers and floats in dictionaries and I don’t like all the extra work of wrapping/unwrapping them in NSNumber/NSValue. I wrote a category with predictable method names but I do found them quite handy; -integerForKey: etc. If ever I can cut down the amount of code I have to read/write in the important parts of my app, I will.