Latest Articles

Use the navigation at the bottom to see older articles

How to add a custom initialiser to a Managed Object in Core Data

NSManagedObjects behave differently to NSObjects on many levels. If you’d like to add custom start-up behaviour in your NSManagedObjects, you’ll have noticed that overriding the standard init method isn’t working. Instead, we can use the awakeFromFetch method. This is called automatically when a managed object is retrieved from the Core Data stack: – (void)awakefrom { […]

Disk Space Pie Chart – v0.6 released

I’ve just released a new version of my (totally unpopular) Disk Space Pie Chart plugin for WordPress. The update addresses the background colour of the pie chart which worked well with WordPress 3.7 and below, but now that we have a snazzy new colour scheme in the admin interface, I made sure it still looks … Read more

How to use the iOS 5 Simulator in Xcode 5

If you’re running Mavericks then sadly the iOS 5 simulator is gone for good – both in Xcode 5 as well as Xcode 4.6.3. It appears that the Mavericks kernel is no longer compatible with iOS 5 any more, and we only have access to the iOS 6.0, 6.1, 7.0 and 7.1 simulators. To use […]

P2 Header Ad – v1.3 released

I’ve just released a new version of my P2 Header Ad plugin, adding the following features: added translation readiness added German Translation added Spanish Translation (thanks to Andrew Kurtis from WebHostingHub) verified WordPress 3.8 compatibility You can get the latest version simply by using the WordPress updates (under Dashbaord – Updates), or download it from … Read more

How to test for a (null) string in Objective C

I wanted to test if a string has a value when it’s returned from Core Data. So I thought, the right way to do this was to see if it’s equal to nothing, like so: if ([myString isEqualToString:@””]) { // should be empty… but may not be } But to my surprise this didn’t work […]

How to internationalise and translate your WordPress Plugin

Today I got a lovely request from Andrew over at WebHostingHub.com who asked if he could translate my P2 Header Ad plugin into Spanish. “Of course”, I thought – and then I realised that I knew not much about how to get a plugin translation ready. I knew POEdit of course, but how to make … Read more