#import "StatusWindow.h"
#import "StatusWindowController.h"
#import "CustomMenuTableView.h"
+#import "AudioscrobblerController.h"
#import <Security/Security.h>
SecKeychainAttribute attributes[3];
SecKeychainAttributeList list;
+ if ((user == nil) || ([user length] == 0)) {
+ return nil;
+ }
+
ITDebugLog(@"Audioscrobbler: Searching for keychain item for %@.", user);
attributes[0].tag = kSecAccountItemAttr;
attributes[0].data = (char *)[user UTF8String];
[PreferencesController deleteKeychainItemForUser:currentAccount];
}
[PreferencesController createKeychainItemForUser:newAccount andPassword:[audioscrobblerPasswordTextField stringValue]];
+ [[AudioscrobblerController sharedController] attemptHandshake:YES];
}
} else if ( [sender tag ] == 6030) {
//Here we set the password for an existing keychain item or we create a new keychain item.