Best approach for custom button using layers?

2014-04-06 Thread Graham Cox
I want to make some custom buttons to replace the standard checkbox, and maybe others. I also want to make use of Core Animation layers to animate aspects of these. Looking at the current model of NSControl + NSCell subclasses (in this case NSButton + NSButtonCell), they bring along much

Re: Best approach for custom button using layers?

2014-04-06 Thread edward taffel
i have a number of custom buttons in my app, all derived from NSButton. some do some simple animation (no Core Animation) which i handle in drawRect determined by state. i connect actions in ib, as usual, but with one difference: i handle mouseDown where i change state (open/closed, on/off,