diff options
-rw-r--r-- | Source/SPConnectionController.m | 2 | ||||
-rw-r--r-- | Source/SPConnectionControllerInitializer.m | 6 | ||||
-rw-r--r-- | Source/SPExportFileUtilities.m | 2 | ||||
-rw-r--r-- | Source/SPExportFilenameUtilities.m | 2 | ||||
-rw-r--r-- | Source/SPExportInitializer.m | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index cc1daeb7..2af457ec 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -435,7 +435,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, - (void)sortFavorites:(id)sender { SPFavoritesSortItem previousSortItem = currentSortItem; - currentSortItem = [[sender menu] indexOfItem:sender]; + currentSortItem = (SPFavoritesSortItem)[[sender menu] indexOfItem:sender]; [prefs setInteger:currentSortItem forKey:SPFavoritesSortedBy]; diff --git a/Source/SPConnectionControllerInitializer.m b/Source/SPConnectionControllerInitializer.m index 081d07b1..7a50b003 100644 --- a/Source/SPConnectionControllerInitializer.m +++ b/Source/SPConnectionControllerInitializer.m @@ -113,9 +113,9 @@ static NSString *SPConnectionViewNibName = @"ConnectionView"; [self performSelector:@selector(_scrollToSelectedNode) withObject:nil afterDelay:0.0]; } - // Set sort items - currentSortItem = [prefs integerForKey:SPFavoritesSortedBy]; - reverseFavoritesSort = [prefs boolForKey:SPFavoritesSortedInReverse]; + // Set sort items + currentSortItem = (SPFavoritesSortItem)[prefs integerForKey:SPFavoritesSortedBy]; + reverseFavoritesSort = [prefs boolForKey:SPFavoritesSortedInReverse]; } return self; diff --git a/Source/SPExportFileUtilities.m b/Source/SPExportFileUtilities.m index c14fd7e0..52ce1a86 100644 --- a/Source/SPExportFileUtilities.m +++ b/Source/SPExportFileUtilities.m @@ -279,7 +279,7 @@ SPExportErrorChoice; if ([file exportFileHandleStatus] == SPExportFileHandleExists) { if ([file createExportFileHandle:YES] == SPExportFileHandleCreated) { - [file setCompressionFormat:[exportOutputCompressionFormatPopupButton indexOfSelectedItem]]; + [file setCompressionFormat:(SPFileCompressionFormat)[exportOutputCompressionFormatPopupButton indexOfSelectedItem]]; if ([file exportFileNeedsCSVHeader]) { [self writeCSVHeaderToExportFile:file]; diff --git a/Source/SPExportFilenameUtilities.m b/Source/SPExportFilenameUtilities.m index 1f37a561..3aee5207 100644 --- a/Source/SPExportFilenameUtilities.m +++ b/Source/SPExportFilenameUtilities.m @@ -268,7 +268,7 @@ if ([exportOutputCompressionFormatPopupButton indexOfSelectedItem] != SPNoCompression) { - SPFileCompressionFormat compressionFormat = [exportOutputCompressionFormatPopupButton indexOfSelectedItem]; + SPFileCompressionFormat compressionFormat = (SPFileCompressionFormat)[exportOutputCompressionFormatPopupButton indexOfSelectedItem]; if ([extension length] > 0) { extension = [extension stringByAppendingPathExtension:(compressionFormat == SPGzipCompression) ? @"gz" : @"bz2"]; diff --git a/Source/SPExportInitializer.m b/Source/SPExportInitializer.m index b02ef927..4cad22ba 100644 --- a/Source/SPExportInitializer.m +++ b/Source/SPExportInitializer.m @@ -420,7 +420,7 @@ [exporter setExportOutputEncoding:[connection stringEncoding]]; [exporter setExportMaxProgress:(NSInteger)[exportProgressIndicator bounds].size.width]; [exporter setExportUsingLowMemoryBlockingStreaming:[exportProcessLowMemoryButton state]]; - [exporter setExportOutputCompressionFormat:[exportOutputCompressionFormatPopupButton indexOfSelectedItem]]; + [exporter setExportOutputCompressionFormat:(SPFileCompressionFormat)[exportOutputCompressionFormatPopupButton indexOfSelectedItem]]; [exporter setExportOutputCompressFile:([exportOutputCompressionFormatPopupButton indexOfSelectedItem] != SPNoCompression)]; } @@ -431,7 +431,7 @@ { if ([exportFile createExportFileHandle:NO] == SPExportFileHandleCreated) { - [exportFile setCompressionFormat:[exportOutputCompressionFormatPopupButton indexOfSelectedItem]]; + [exportFile setCompressionFormat:(SPFileCompressionFormat)[exportOutputCompressionFormatPopupButton indexOfSelectedItem]]; if ([exportFile exportFileNeedsCSVHeader]) { [self writeCSVHeaderToExportFile:exportFile]; |