Eclipse, Mac OS

Eclipse – Hanging on Android SDK Content Loader or Error Markers

Me and Eclipse (especially on Mac) do not get along. We have a lot of issues, and one of the big ones is the constant hanging when I have to re-open Eclipse to switch projects or branches. This is probably a post for future me, when I've forgotten how to do it and need to [...]

Development, Mac OS, Obj-C, Programming

Objective-C Swizzling without Side Effects

<tl;dr> Using method_exchangeImplementations results in a number of unexpected and dangerous side effects which in most cases you’ll want to avoid. You should use method_setImplementation and swizzle a C-style function instead to give yourself more control over your applications behaviour. </tl;dr>   Swizzling is an incredibly powerful, and incredibly dangerous, feature of Objective-C that in [...]

Mac OS, Obj-C, Programming, Unit Testing

Injecting data into Obj-C readonly properties

<tl;dr> If you want to inject data into an object that only has read-only properties, swizzle the synthesised getter function so you can inject the data you need at the point it’s accessed. For example </tl;dr>   I recently needed to set up some client side unit tests for our iOS receipt verification server. This [...]

GLFW, Mac OS, Programming, XCode 4

GLFW – Compiling Source and Creating an Xcode Project

GLFW is a great library - easy to use, great documentation covering it's API design. But if you're not on Windows where they provide pre-built libraries, going from a source download to a compiling Xcode project is _not_easy. Since brew (as of writing) only provides GLFW 2, you need to build GLFW 3 yourself. There [...]

Continuous Integration, Jenkins, Mac OS, Ruby

Ruby, Jenkins and Mac OS

I've been using Jenkins as my CI server for a while and though user permissions has always been a bit of an issue (I'll explain why in another blog post covering my Unity build process) running command line tools has never been to much of a problem once it got going. At least not until [...]

User Interface, XCode 4

Bug or Bad UI: Find and Replace in XCode 4

As applications get larger and more complicated with every iteration it sometimes becomes difficult to know if incorrect behaviour is down to a bug or badly designed user interface. XCode 4 is an application that has some quirky design choices, some which I really like and some which just baffle. Here's one a I found [...]

Mac OS

Macintosh Hackintosh

I recently bought a Mac. I wanted a small, easy to use media centre to sit next to my TV and while I originally looked into getting a Dell Zino I thought it'd be a perfect time to get an unintrusive Mac and headed off to the Apple Store and picked up a Mac Mini. [...]