When you develop both an iOS and a Mac app, you want to share as much code as possible. While creating a shared codebase you also have to separate platform specific tasks. We started out with the Mac app and later added iOS. I will talk about how we structured our code to tackle this problem.