From c90130c7b9a66d921e0b45e2d74b554670c89a07 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Thu, 3 Sep 2009 19:32:39 +0000 Subject: Replace deprecated stringWithCString:length: and update Console.xib after SPQueryConsole rename. --- Source/SPKeychain.m | 2 +- Source/SPQueryController.m | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPKeychain.m b/Source/SPKeychain.m index 5e98eb26..0523d55b 100644 --- a/Source/SPKeychain.m +++ b/Source/SPKeychain.m @@ -137,7 +137,7 @@ ); if (status == noErr) { - password = [NSString stringWithCString:passwordData length:passwordLength]; + password = [NSString stringWithCString:passwordData encoding:NSUTF8StringEncoding]; // Free the data allocated by SecKeychainFindGenericPassword: SecKeychainItemFreeContent( diff --git a/Source/SPQueryController.m b/Source/SPQueryController.m index c7b61195..e8478cc0 100644 --- a/Source/SPQueryController.m +++ b/Source/SPQueryController.m @@ -457,6 +457,11 @@ static SPQueryController *sharedQueryController = nil; [consoleTableView scrollRowToVisible:([messagesVisibleSet count] - 1)]; } +- (NSString *)windowFrameAutosaveName +{ + return @"QueryConsole"; +} + /** * Standard dealloc. */ -- cgit v1.2.3