X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b04fe171f0375ecd5d8a24747ca1dff85720a0ca..6b200bc335dc93c5516ccb52f14bd896d8c7fad7:/Keychain/NewPasswordViewController.m?ds=inline diff --git a/Keychain/NewPasswordViewController.m b/Keychain/NewPasswordViewController.m deleted file mode 100644 index 28e6376e..00000000 --- a/Keychain/NewPasswordViewController.m +++ /dev/null @@ -1,62 +0,0 @@ -// -// NewPasswordViewController.m -// Security -// -// Created by john on 10/24/12. -// -// - -#import "NewPasswordViewController.h" -#import "MyKeychain.h" -//#import -#import -#import -#include "utilities.h" - -static const CFStringRef kAddItemKeyX = CFSTR("AddItem"); - - -@interface NewPasswordViewController () - -@end - -@implementation NewPasswordViewController - -- (void)viewDidLoad -{ - NSLog(@"NewPasswordViewController:viewDidLoad"); - [super viewDidLoad]; - - dgroup = dispatch_group_create(); - xpc_queue = dispatch_queue_create("NewPasswordViewController", DISPATCH_QUEUE_CONCURRENT); - // Uncomment the following line to preserve selection between presentations. - // self.clearsSelectionOnViewWillAppear = NO; - - // Uncomment the following line to display an Edit button in the navigation bar for this view controller. - // self.navigationItem.rightBarButtonItem = self.editButtonItem; -} - -- (void)didReceiveMemoryWarning -{ - [super didReceiveMemoryWarning]; - // Dispose of any resources that can be recreated. -} - -- (void)postToCloud:(NSDictionary *)kcitem -{ - CFErrorRef error = NULL; - testPutObjectInCloud(kAddItemKeyX, (__bridge CFTypeRef)(kcitem), &error, dgroup, xpc_queue); - NSLog(@"Sent new item to cloud: %@", kcitem); -} - -- (IBAction)handleNewPasswordDone:(id)sender -{ - // [self performSegueWithIdentifier: @"SegueToScene1" sender: self]; - NSLog(@"NewPasswordViewController:handleAddButton"); - - [[MyKeychain sharedInstance] setPasswordFull:[_itemAccount text] service:[_itemName text] password:[_itemPassword text]]; - - [self performSegueWithIdentifier:@"AllItemsSegue" sender:self]; -} - -@end