Skip to content

Instantly share code, notes, and snippets.

@sangregoriopaolo
Created September 29, 2012 13:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sangregoriopaolo/3803931 to your computer and use it in GitHub Desktop.
Save sangregoriopaolo/3803931 to your computer and use it in GitHub Desktop.
NSButton+FixClickBehavior
#import <Cocoa/Cocoa.h>
@interface NSButton (FixClickBehavior)
- (void)fixClickBehavior;
@end
#import "NSButton+FixClickBehavior.h"
@implementation NSButton (FixClickBehavior)
- (void)fixClickBehavior {
[self.cell setShowsStateBy:NSPushInCellMask];
[self.cell setHighlightsBy:NSContentsCellMask];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment