Hello,
I am trying to create an HUD slider. I know about the BWToolkit, but my version of Xcode does not support it. This is what it looks like when I run my code:
My image I am using as a knob is this:
(This gray area around it is the preview app)
Here is my code:
Why is this happening?
Please Help
Thanks
I am trying to create an HUD slider. I know about the BWToolkit, but my version of Xcode does not support it. This is what it looks like when I run my code:
My image I am using as a knob is this:
(This gray area around it is the preview app)
Here is my code:
Code:
#import "Custom Slider.h"
@implementation Custom_Slider
@synthesize knobImage;
-(void)awakeFromNib{
self.knobImage = [NSImage imageNamed:@"sliderImage"];
}
-(void)drawKnob:(NSRect)knobRect{
[[NSColor clearColor] set];
NSRectFill(knobRect);
[knobImage compositeToPoint:NSZeroPoint operation:NSCompositeSourceOver];
}
@end
Why is this happening?
Please Help
Thanks