Monthly Archives: October 2013

Cocoapods: Creating and Sharing Your First Objective-C Open Source Project

Yet another little annoyance on the way to trying to create an iOS App – learning how to create sub-projects as Cocoapods. It involves Github, Repos, Commits, and Podspec. Yep, that sounds odd even to me. My little brain is starting to bulge out my ears!

Brace Style in Objective-C

      No Comments on Brace Style in Objective-C

Over on inessential.com, Brent Simmons discusses brace style in Objective C. I’m glad he’s seeing the light. In 25 years of coding in C dialects, I’ve never understood why people think that omitting the brackets improves readability. Coding is not, generally, improved by brevity or obscurity. The purpose is to write code that is clear in its intent, both to the compiler, the author, and future maintainers. If you know a thing about visual design, then you know that white space is your friend, so there is no need to skimp on that either.

False Widow Spider Maybe?

      2 Comments on False Widow Spider Maybe?

There I was this morning, sitting in bed reading the news, like you do. I was aware that there was a little spider, no bigger than a 5 pence piece lurking on the valance above the window, but I’d already decided to ignore it until I got up. But then I read this story about a school closure in Gloucestershire… Read more »

Thoughts on new Apple iPad Air, MacBook Pro, Mac Pro and OS X Mavericks

Another wide ranging announcement of new toys from Apple today. The Keynotes are as predictable as ever (unless your one of those people who think that Apple should be release some new, secret, market changing device of the century), although I did think this one lacked some of the polish of the past. Jobs was the master showman, and the… Read more »

Unit Testing Core Data NSManagedObject with Kiwi

      5 Comments on Unit Testing Core Data NSManagedObject with Kiwi

The project that I am working on at the moment utilises Core Data for storing data, and that meant that I would need to figure out how to unit test the model. Most of what you are going to need to do is validate that your managed objects come back with appropriate defaults when first allocated, and that bounds checking… Read more »

Core Data: Transient Properties on NSManagedObject

      15 Comments on Core Data: Transient Properties on NSManagedObject

Transient properties are properties on a NSManagedObject that are not persisted to the object store. They are calculated at runtime, usually on the basis of other property values. The classic example would be for a Person object, generating a fullName property that is not persisted to the object store as both firstName and lastName are, so it can be composed at runtime.

How to Share Files Between a Mac (OSX 10.8) and an iPhone or iPad (iOS 7) with AirDrop

Sorry to disappoint, but you can’t. Apple, in their infinite wisdom, decided to create a technology that is locked into separate, parallel worlds. You can Airdrop between Macs, and you can Airdrop between iOS devices such as iPhone and iPad (assuming you are running iOS 7 and have a supported device). It’s not obvious in the Apple documentation, or on… Read more »