aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-03-14 20:04:34 +0000
committerstuconnolly <stuart02@gmail.com>2011-03-14 20:04:34 +0000
commitd2b4123427c21c522b2e4496a6d54eb74aabe62d (patch)
treee49cd8e4c6ba62c8544699ab773b598ea5040167 /Source/SPConnectionController.m
parentf63d1de5460968e5466be02676c8c6f9ed8787b6 (diff)
downloadsequelpro-d2b4123427c21c522b2e4496a6d54eb74aabe62d.tar.gz
sequelpro-d2b4123427c21c522b2e4496a6d54eb74aabe62d.tar.bz2
sequelpro-d2b4123427c21c522b2e4496a6d54eb74aabe62d.zip
Fix more compiler warnings.
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 286960bc..66627132 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -36,6 +36,8 @@
#import "SPTableTextFieldCell.h"
#import "SPGeneralPreferencePane.h"
#import "SPDatabaseViewController.h"
+#import "SPPreferenceController.h"
+#import "SPFavoritesPreferencePane.h"
@interface SPConnectionController (PrivateAPI)
@@ -144,9 +146,9 @@
[favoritesTable setDraggingSourceOperationMask:NSDragOperationMove forLocal:YES];
// Sort the favourites to match prefs and select the appropriate row - if a valid sort option is selected
- if (currentSortItem > -1) [self _sortFavorites];
+ if ((NSInteger)currentSortItem > -1) [self _sortFavorites];
- NSInteger tableRow = [prefs integerForKey:[prefs boolForKey:SPSelectLastFavoriteUsed] ? SPLastFavoriteIndex : SPDefaultFavorite];
+ NSUInteger tableRow = [prefs integerForKey:[prefs boolForKey:SPSelectLastFavoriteUsed] ? SPLastFavoriteIndex : SPDefaultFavorite];
if (tableRow < [favorites count]) {
previousType = [[[favorites objectAtIndex:tableRow] objectForKey:SPFavoriteTypeKey] integerValue];
@@ -844,7 +846,7 @@
// Perform sorting
[self _sortFavorites];
- if (previousSortItem > -1) [[[sender menu] itemAtIndex:previousSortItem] setState:NSOffState];
+ if ((NSInteger)previousSortItem > -1) [[[sender menu] itemAtIndex:previousSortItem] setState:NSOffState];
[[[sender menu] itemAtIndex:currentSortItem] setState:NSOnState];
}
@@ -861,7 +863,7 @@
// Perform re-sorting
[self _sortFavorites];
- [sender setState:reverseFavoritesSort];
+ [(NSMenuItem *)sender setState:reverseFavoritesSort];
}
/**