Subclass NSProgressIndicator
问题 i like to subclass a NSProgressIndicator. I've used this code and i set the Subclass in the Interface Builder: - (void)drawRect:(NSRect)dirtyRect { NSRect rect = NSInsetRect([self bounds], 1.0, 1.0); CGFloat radius = rect.size.height / 2; NSBezierPath *bz = [NSBezierPath bezierPathWithRoundedRect:rect xRadius:radius yRadius:radius]; [bz setLineWidth:2.0]; [[NSColor blackColor] set]; [bz stroke]; rect = NSInsetRect(rect, 2.0, 2.0); radius = rect.size.height / 2; bz = [NSBezierPath