Macoscope Objective-C Style Guide

Learning a new programming language can be daunting, especially if it relies heavily on a set of idioms or patterns you have never encountered before. Before you start writing good code in a new language, you first need to know what good code looks like. Having a standard style guide can help you get up to speed on best practices used throughout the community – and making it easier for new developers to join the platform is something we should all strive towards. At Macoscope, we believe in helping fellow developers out, an attitude which we hope is reflected by our small but constantly growing library of open-source code and our engagement with the community at events like Mobile Central Europe.

Continue Reading

GCD Dispatch Groups With an Additional Level of Inception

We often find ourselves in a situation where we have to wait for multiple asynchronous blocks to finish before we can proceed. One such case is even described in Apple’s Concurrency Programming Guide. It can be easily done using dispatch groups functions. But things may get complicated when the code inside each of your blocks makes other asynchronous calls. And it’s the completion of the latter ones that you want to be notified of.

Continue Reading

Calling Blocks Inline

I’ve recently discovered an interesting use for blocks in Objective-C. It’s possible to call them inline right after the definition, just like you would do in javascript.

Continue Reading

Addresses Revealed

I’m not a fan of the development cycle on iOS. The delays caused by recompilation and app launch are so frustrating that I try go through this tedious process as rarely as possible. Obviously, I still have to get some work done, so lately I’ve found myself using two tools indispensable in the course of making my life easier…

Continue Reading

The Story of Code Pilot

Today we’re making Code Pilot open source. It’s been an amazing ride with this product for us as a company and me personally, so I wanted to take this chance and tell you its story.

Continue Reading

2/3