I have an NSSegmentedControl(todayButton) that contains an image. I'm trying to draw some text onto the image using the following:
NSImage *img = [todayButton imageForSegment:0]
[img lockFocus]
[@"15" drawAtPoint:NSZeroPoint withAttributes:nil]
[img unlockFocus]
[img setTemplate:YES]
The image gets set as a template and no errors are thrown but no text appears on the image.