Trying to round out the border of an NSTextField (the little black box in the upper-left corner): http://cl.ly/image/2V2L1u3b3u0G
So I subclassed NSTextField:
MYTextField.h
#import <Cocoa/Cocoa.h> @interface HATrackCounterField : NSTextField @end MYTextField.m
#import "HATrackCounterField.h" @implementation HATrackCounterField - (id)initWithFrame:(NSRect)frame { self = [super initWithFrame:frame]; if (self) {} return self; } - (void)drawRect:(NSRect)dirtyRect { [[NSColor blackColor] setFill]; [[NSBezierPath bezierPathWithRoundedRect:dirtyRect xRadius:3.0 yRadius:3.0] fill]; } @end Now its not showing the text-field text: http://cl.ly/image/1J2W3K431C04
I'm new at objective-c, it seems like this should be easy, so I'm probably just doing something wrong...
Thanks!
Note: I'm setting the text through a collection view, and I've tried setStringValue: at different points also to no avail.