diff options
| author | Justin Anderson <jander@mit.edu> | 2008-10-02 17:34:17 +0000 |
|---|---|---|
| committer | Justin Anderson <jander@mit.edu> | 2008-10-02 17:34:17 +0000 |
| commit | 347cfa63fa8d3097d540fa84146e020e06c9a91c (patch) | |
| tree | 8e87a8f64d6a0bbc8f6158695914fb7262a1fd23 /src/kim/agent/mac/SelectIdentityController.m | |
| parent | b8b7bd63231094a3583847853bf60cb002781161 (diff) | |
| download | krb5-347cfa63fa8d3097d540fa84146e020e06c9a91c.tar.gz krb5-347cfa63fa8d3097d540fa84146e020e06c9a91c.tar.xz krb5-347cfa63fa8d3097d540fa84146e020e06c9a91c.zip | |
Resize dialogs better, added progress indicator to show KerberosAgent is working between interactions
Make Identity and Identities classes use NSDictionary representations of kim_options like the rest of KerberosAgent.
ticket: 6055
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20811 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kim/agent/mac/SelectIdentityController.m')
| -rw-r--r-- | src/kim/agent/mac/SelectIdentityController.m | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/src/kim/agent/mac/SelectIdentityController.m b/src/kim/agent/mac/SelectIdentityController.m index eafd3d462..f6f891ab3 100644 --- a/src/kim/agent/mac/SelectIdentityController.m +++ b/src/kim/agent/mac/SelectIdentityController.m @@ -126,6 +126,13 @@ // --------------------------------------------------------------------------- +- (IBAction) changePassword: (id) sender +{ + +} + +// --------------------------------------------------------------------------- + - (IBAction) select: (id) sender { Identity *selectedIdentity = nil; @@ -136,8 +143,9 @@ } selectedIdentity = [[identityArrayController selectedObjects] lastObject]; - [associatedClient didSelectIdentity: selectedIdentity.principalString - options: [identityOptionsController valueForKeyPath:@"content.options"]]; + [associatedClient didSelectIdentity: selectedIdentity.identity + options: [identityOptionsController valueForKeyPath:@"content.options"] + wantsChangePassword: NO]; } // --------------------------------------------------------------------------- @@ -205,14 +213,16 @@ - (void) showOptions: (NSString *) contextInfo { - Identity *anIdentity = identityOptionsController.content; - - [identityField setStringValue:anIdentity.principalString]; - [staticIdentityField setStringValue:anIdentity.principalString]; - + Identity *anIdentity = [[identityArrayController selectedObjects] lastObject]; // use a copy of the current options [identityOptionsController setContent: [[[glueController valueForKeyPath:options_keypath] mutableCopy] autorelease]]; + + [identityField setStringValue:anIdentity.identity]; + [staticIdentityField setStringValue:anIdentity.identity]; + + [identityOptionsController setContent: + [[[glueController valueForKeyPath:options_keypath] mutableCopy] autorelease]]; [identityOptionsController setValue:[NSNumber numberWithInteger:[KIMUtilities minValidLifetime]] forKeyPath:min_valid_keypath]; |
