Actually, it mostly works in Xcode 6.
Add a bit of context to the tutorial code.