Hi Andreas, the only alternative to custom drawing I know is using the setImage: and setAlternateImage: methods of NSButton. These let you specify images for unchecked and checked state respectively. You could generate colored checkbox images with your own private method, something like
- (NSImage *)checkboxImageWithColor:(NSColor *)aColor isChecked:(BOOL)checked and assign the images to your checkbox button instances. Implementing this image generating private method shouldn't be too hard. That's the path I would try first, but I never did this so please correct me if I'm wrong! Good luck! Sebastian Am 15.04.2010 um 09:43 schrieb Andreas Eriksson: > Is there a way to get colored checkboxes like in iCal without using > custom drawing? > > I have looked through the documentation but can only find how to > change the background and text color. > > / Andreas > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/sebastianmorsch%40mac.com > > This email sent to sebastianmor...@mac.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com