From: Justin Anderson Date: Fri, 31 Oct 2008 19:37:18 +0000 (+0000) Subject: KerberosAgent bindings causing crashes X-Git-Tag: krb5-1.7-alpha1~239 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8d13d2a2e8d957a9e27d042028348aa2f5a261a4;p=krb5.git KerberosAgent bindings causing crashes Attempting to fix a hard to reproduce bug with bindings by handling not applicable keys a little better. ticket: new git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20945 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kim/agent/mac/AuthenticationController.m b/src/kim/agent/mac/AuthenticationController.m index 8df6396fe..ea94d6b5b 100644 --- a/src/kim/agent/mac/AuthenticationController.m +++ b/src/kim/agent/mac/AuthenticationController.m @@ -138,6 +138,9 @@ [glueController setValue:[NSNumber numberWithBool:valid] forKeyPath:change_password_ok_keypath]; } + else { + [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; + } } else { [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; diff --git a/src/kim/agent/mac/SelectIdentityController.m b/src/kim/agent/mac/SelectIdentityController.m index 9f9addaf3..b89e698da 100644 --- a/src/kim/agent/mac/SelectIdentityController.m +++ b/src/kim/agent/mac/SelectIdentityController.m @@ -41,7 +41,7 @@ - (void) dealloc { - [identityOptionsController removeObserver:self forKeyPath:uses_default_options_keypath]; + [identityOptionsController removeObserver:self forKeyPath:identity_string_keypath]; [refreshTimer release]; [identities release]; [super dealloc]; @@ -95,6 +95,9 @@ [identityOptionsController setValue:[NSNumber numberWithBool:enabled] forKeyPath:@"content.canClickOK"]; } + else { + [super observeValueForKeyPath:keyPath ofObject:object change:change context:context]; + } } // --------------------------------------------------------------------------- diff --git a/src/kim/agent/mac/resources/English.lproj/SelectIdentity.xib b/src/kim/agent/mac/resources/English.lproj/SelectIdentity.xib index 1a5ff962e..8be14fb6c 100644 --- a/src/kim/agent/mac/resources/English.lproj/SelectIdentity.xib +++ b/src/kim/agent/mac/resources/English.lproj/SelectIdentity.xib @@ -917,6 +917,7 @@ usesDefaultTicketOptions YES + YES @@ -937,6 +938,7 @@ favorite identities minRenewableLifetime + content.identities Identities @@ -1290,22 +1292,6 @@ 300442 - - - contentArray: selection.identities - - - - - - contentArray: selection.identities - contentArray - selection.identities - 2 - - - 300444 - newIdentity: @@ -1704,22 +1690,6 @@ 300509 - - - enabled: selection.canClickOK - - - - - - enabled: selection.canClickOK - enabled - selection.canClickOK - 2 - - - 300510 - identityTableScrollView @@ -1900,6 +1870,57 @@ 300536 + + + contentArray: content.identities + + + + + + contentArray: content.identities + contentArray + content.identities + 2 + + + 300539 + + + + enabled: selection.canClickOK + + + + + + enabled: selection.canClickOK + enabled + selection.canClickOK + + YES + + YES + NSMultipleValuesPlaceholder + NSNoSelectionPlaceholder + NSNotApplicablePlaceholder + NSNullPlaceholder + NSRaisesForNotApplicableKeys + + + YES + + + + + + + + 2 + + + 300546 + @@ -2665,7 +2686,7 @@ com.apple.InterfaceBuilder.CocoaPlugin {{495, 457}, {500, 273}} - + {{503, 256}, {419, 465}} @@ -2697,7 +2718,7 @@ - 300536 + 300546 @@ -2747,7 +2768,6 @@ editOptions: newIdentity: removeFromFavorites: - resetOptions: select: sliderDidChange: toggleOptionsVisibility: @@ -2766,7 +2786,6 @@ id id id - id