// // HFTextSelectionPulseView.m // HexFiend_2 // // Created by Peter Ammon on 4/27/08. // Copyright 2008 ridiculous_fish. All rights reserved. // #import @implementation HFTextSelectionPulseView - (id)initWithFrame:(NSRect)frame { self = [super initWithFrame:frame]; if (self) { // Initialization code here. } return self; } - (void)drawRect:(NSRect)rect { USE(rect); CGContextSetInterpolationQuality([[NSGraphicsContext currentContext] graphicsPort], kCGInterpolationHigh); [image drawInRect:[self bounds] fromRect:NSZeroRect operation:NSCompositeCopy fraction:(CGFloat)1.]; } - (void)setImage:(NSImage *)val { [val retain]; [image release]; image = val; [self setNeedsDisplay:YES]; } @end