Ui for the password wizzard now works more or less.

Password creation needs to be finalized
This commit is contained in:
michael starke
2013-06-12 01:13:05 +02:00
parent df7a492ec8
commit a54b2aae5a
13 changed files with 881 additions and 482 deletions

View File

@@ -57,8 +57,21 @@
}
if(!self.passwordCreatorController) {
self.passwordCreatorController = [[[MPPasswordCreatorViewController alloc] init] autorelease];
NSView *creatorView = [_passwordCreatorController view];
//NSView *contentView = [_passwordCreatorWindow contentView];
[self.passwordCreatorWindow setContentView:creatorView];
//[contentView addSubview:creatorView];
// [[_passwordCreatorWindow contentView] addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[creatorView]|"
// options:0
// metrics:nil
// views:NSDictionaryOfVariableBindings(creatorView)]];
// [[_passwordCreatorWindow contentView] addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[creatorView]|"
// options:0
// metrics:nil
// views:NSDictionaryOfVariableBindings(creatorView)]];
// [contentView layoutSubtreeIfNeeded];
}
[self.passwordCreatorWindow setContentView:[self.passwordCreatorController view]];
[self.passwordCreatorWindow makeKeyAndOrderFront:self.passwordCreatorWindow];
}