Created
May 6, 2009 20:21
-
-
Save danielpunkass/107719 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@implementation JimPopUpButtonCell | |
- (void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView | |
{ | |
NSRect rect = [self drawingRectForBounds: cellFrame]; | |
rect.size.width -= 17; // chop off the popup indicator | |
NSSize imageSize = NSMakeSize(12, 12); | |
rect.origin.x += (rect.size.width - imageSize.width) / 2.0; | |
rect.origin.y -= (rect.size.height - imageSize.height) / 2.0; | |
rect.size = imageSize; | |
NSFrameRect(rect); | |
NSBeep(); | |
} | |
@end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment