CocoaDev

Edit AllPages

CCDProgressIndicator is a simple subclass for drawing rounded progress bars.

// CCDProgressIndicator.h #import <AppKit/AppKit.h>

typedef enum { CCDProgressIndicatorSquareBezel = NSTextFieldSquareBezel, CCDProgressIndicatorRoundedBezel = NSTextFieldRoundedBezel } CCDProgressIndicatorBezelStyle;

@interface CCDProgressIndicator : NSProgressIndicator { NSTextFieldCell *textCell; NSImage *scratch; }

// CCDProgressIndicator.m #import “CCDProgressIndicator.h”

@implementation CCDProgressIndicator

@end


1/16; Don’t know how I overlooked it but scratch wasn’t being cleared before, now it is.

4/8; CCDImageCategory wasn’t needed, as described on its page.