diff options
author | Stuart Connolly <stuart02@gmail.com> | 2013-11-30 21:27:36 +0000 |
---|---|---|
committer | Stuart Connolly <stuart02@gmail.com> | 2013-11-30 21:27:36 +0000 |
commit | 0a336a7123f411d5ffc68019bf8b5c3a360551b9 (patch) | |
tree | 2d0096e15ebac531b9271fe2a473da0acc7276a5 /Source/SPConnectionController.m | |
parent | 1413739842750c89d7a29a1f04ef587d73dd2edb (diff) | |
download | sequelpro-0a336a7123f411d5ffc68019bf8b5c3a360551b9.tar.gz sequelpro-0a336a7123f411d5ffc68019bf8b5c3a360551b9.tar.bz2 sequelpro-0a336a7123f411d5ffc68019bf8b5c3a360551b9.zip |
Remove use of deprecated methods.
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index db6851d9..be00e5b7 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -1054,7 +1054,7 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, */ - (void)chooseKeyLocationSheetDidEnd:(NSOpenPanel *)openPanel returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo { - NSString *abbreviatedFileName = [[openPanel filename] stringByAbbreviatingWithTildeInPath]; + NSString *abbreviatedFileName = [[[openPanel URL] path] stringByAbbreviatingWithTildeInPath]; // SSH key file selection if (contextInfo == sshSSHKeyButton) { @@ -1104,24 +1104,24 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, */ - (void)importExportFavoritesSheetDidEnd:(NSOpenPanel *)panel returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo - { +{ if (returnCode == NSOKButton) { if (contextInfo == SPExportFavorites) { SPFavoritesExporter *exporter = [[[SPFavoritesExporter alloc] init] autorelease]; [exporter setDelegate:(NSObject<SPFavoritesExportProtocol> *)self]; - [exporter writeFavorites:[self selectedFavoriteNodes] toFile:[panel filename]]; + [exporter writeFavorites:[self selectedFavoriteNodes] toFile:[[panel URL] path]]; } else if (contextInfo == SPImportFavorites) { SPFavoritesImporter *importer = [[SPFavoritesImporter alloc] init]; [importer setDelegate:(NSObject<SPFavoritesImportProtocol> *)self]; - [importer importFavoritesFromFileAtPath:[panel filename]]; - } + [importer importFavoritesFromFileAtPath:[[panel URL] path]]; } - } + } +} #endif |