Make sure you also add the QuartzCore framework to your target. Just importing the header isn't enough.