Great, thank you for that link! :-)
For people reading this, all I had to change was really the colourspace, I had to set
Code:
colorSpace = CGColorSpaceCreateDeviceRGB();
instead of
Code:
colorSpace = CGColorSpaceCreateWithName(kCGColorSpaceGenericRGB);
Cheers
Nik