no message

CQTexperiment
vspader 2005-06-29 17:06:13 +00:00
parent 1b8da77f34
commit c431e1069c
6 changed files with 0 additions and 118 deletions

View File

@ -1,8 +0,0 @@
/* InfoView */
#import <Cocoa/Cocoa.h>
@interface InfoView : NSView
{
}
@end

View File

@ -1,21 +0,0 @@
#import "InfoView.h"
@implementation InfoView
/*
- (id)initWithFrame:(NSRect)frameRect
{
if ((self = [super initWithFrame:frameRect]) != nil) {
// Add initialization code here
}
return self;
}
- (void)drawRect:(NSRect)rect
{
}
*/
- (BOOL)isFlipped
{
return YES;
}
@end

View File

@ -1,14 +0,0 @@
/* TrackingCell */
#import <Cocoa/Cocoa.h>
@interface TrackingCell : NSSliderCell
{
BOOL tracking;
}
- (BOOL)startTrackingAt:(NSPoint)startPoint inView:(NSView *)controlView;
- (void)stopTracking:(NSPoint)lastPoint at:(NSPoint)stopPoint inView:(NSView *)controlView mouseIsUp:(BOOL)flags;
- (BOOL)tracking;
@end

View File

@ -1,27 +0,0 @@
#import "TrackingCell.h"
@implementation TrackingCell
- (BOOL)startTrackingAt:(NSPoint)startPoint inView:(NSView *)controlView
{
// DBLog(@"TRACKING");
tracking = YES;
return [super startTrackingAt:startPoint inView:controlView];
}
- (void)stopTracking:(NSPoint)lastPoint at:(NSPoint)stopPoint inView:(NSView *)controlView mouseIsUp:(BOOL)flag
{
// DBLog(@"NOT TRACKING");
tracking = NO;
[super stopTracking:lastPoint at:stopPoint inView:controlView mouseIsUp:flag];
}
- (BOOL)tracking
{
return tracking;
}
@end

View File

@ -1,10 +0,0 @@
/* TrackingSlider */
#import <Cocoa/Cocoa.h>
@interface TrackingSlider : NSSlider
{
}
-(BOOL)tracking;
@end

View File

@ -1,38 +0,0 @@
#import "TrackingSlider.h"
#import "TrackingCell.h"
@implementation TrackingSlider
- (id)initWithCoder:(NSCoder *)decoder
{
self = [super initWithCoder:decoder];
if (self)
{
if (![[self cell] isKindOfClass:[TrackingCell class]])
{
TrackingCell *trackingCell;
trackingCell = [[TrackingCell alloc] init];
[trackingCell setAction:[[self cell] action]];
[trackingCell setContinuous:[[self cell] isContinuous]];
[trackingCell setTarget:[[self cell] target]];
[self setCell:trackingCell];
[trackingCell release];
}
}
return self;
}
+ (Class) cellClass
{
return [TrackingCell class];
}
-(BOOL)tracking
{
return [[self cell] tracking];
}
@end