Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix some compiler warnings.

  • Loading branch information...
commit 550b45d10f865fb424839698e2095e669edf45f2 1 parent 2d0a07d
@dustin authored
View
7 SparklineCell.m
@@ -74,8 +74,6 @@ - (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame
trackingView=controlView;
displaying=NO;
- NSHelpManager *helpManager = [NSHelpManager sharedHelpManager];
-
[super trackMouse:theEvent inRect:cellFrame ofView:controlView
untilMouseUp:untilMouseUp];
return(YES);
@@ -83,8 +81,6 @@ - (BOOL)trackMouse:(NSEvent *)theEvent inRect:(NSRect)cellFrame
- (BOOL)startTrackingAt:(NSPoint)startPoint inView:(NSView *)controlView
{
- NSPoint translatedPoint=[self translatePoint: startPoint];
- BOOL defaultRv=[super startTrackingAt:startPoint inView:controlView];
return(YES);
}
@@ -138,8 +134,7 @@ - (BOOL)continueTracking:(NSPoint)lastPoint at:(NSPoint)currentPoint
locationHint:helpPoint];
}
- BOOL defaultRv=[super continueTracking:lastPoint at:currentPoint
- inView:controlView];
+ [super continueTracking:lastPoint at:currentPoint inView:controlView];
return(YES);
}
View
6 ThermController.m
@@ -93,7 +93,7 @@ -(void)updateMenuItem:(id)ob
-(void)placeTherms:(NSImage *)ci fImage:(NSImage *)fi
{
// Get the current number of rows and columns
- int r, c;
+ NSInteger r, c;
[thermMatrix getNumberOfRows:&r columns:&c];
/* Figure out the numbers of rows and columns */
@@ -202,7 +202,7 @@ -(void)awakeFromNib
NSLog(@"Initialized source: %@", tempSrc);
// get the row sizes and stuff
- int orow, ocol;
+ NSInteger orow, ocol;
[thermMatrix getNumberOfRows:&orow columns:&ocol];
// Set the autosave name
@@ -211,7 +211,7 @@ -(void)awakeFromNib
// Create and place the cells
[self placeTherms: ci fImage: fi];
- int r, c;
+ NSInteger r, c;
[thermMatrix getNumberOfRows:&r columns:&c];
NSLog(@"Configuring window for %dx%d from %dx%d", r, c, orow, ocol);
View
2  Thermometer.h
@@ -36,6 +36,6 @@
-(NSArray *)lastReadings;
-(int)tag;
--(void)setTag:(int)to;
+-(void)setTag:(NSInteger)to;
@end
View
2  Thermometer.m
@@ -95,7 +95,7 @@ -(int)tag
return(tag);
}
--(void)setTag:(int)to
+-(void)setTag:(NSInteger)to
{
tag=to;
}
Please sign in to comment.
Something went wrong with that request. Please try again.