From 347cfa63fa8d3097d540fa84146e020e06c9a91c Mon Sep 17 00:00:00 2001 From: Justin Anderson Date: Thu, 2 Oct 2008 17:34:17 +0000 Subject: 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 --- src/kim/agent/mac/SelectIdentityController.m | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'src/kim/agent/mac/SelectIdentityController.m') 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,12 +213,14 @@ - (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]]; -- cgit