diff options
author | Justin Anderson <jander@mit.edu> | 2008-10-31 19:37:18 +0000 |
---|---|---|
committer | Justin Anderson <jander@mit.edu> | 2008-10-31 19:37:18 +0000 |
commit | 8d13d2a2e8d957a9e27d042028348aa2f5a261a4 (patch) | |
tree | 8d1ee4c6e839e7aff77fac7bc742f08e8e01168d /src/kim | |
parent | 83112a30385519960a7da56bb004008f060e916a (diff) | |
download | krb5-8d13d2a2e8d957a9e27d042028348aa2f5a261a4.zip krb5-8d13d2a2e8d957a9e27d042028348aa2f5a261a4.tar.gz krb5-8d13d2a2e8d957a9e27d042028348aa2f5a261a4.tar.bz2 |
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
Diffstat (limited to 'src/kim')
-rw-r--r-- | src/kim/agent/mac/AuthenticationController.m | 3 | ||||
-rw-r--r-- | src/kim/agent/mac/SelectIdentityController.m | 5 | ||||
-rw-r--r-- | src/kim/agent/mac/resources/English.lproj/SelectIdentity.xib | 91 |
3 files changed, 62 insertions, 37 deletions
diff --git a/src/kim/agent/mac/AuthenticationController.m b/src/kim/agent/mac/AuthenticationController.m index 8df6396..ea94d6b 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 9f9adda..b89e698 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 1a5ff96..8be14fb 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 @@ <string>usesDefaultTicketOptions</string> </object> <bool key="NSEditable">YES</bool> + <bool key="NSAutomaticallyPreparesContent">YES</bool> <object class="_NSManagedProxy" key="_NSManagedProxy"/> </object> <object class="NSObjectController" id="252123121"> @@ -937,6 +938,7 @@ <string>favorite</string> <string>identities</string> <string>minRenewableLifetime</string> + <string>content.identities</string> </object> <string key="NSObjectClassName">Identities</string> <object class="_NSManagedProxy" key="_NSManagedProxy"/> @@ -1291,22 +1293,6 @@ <int key="connectionID">300442</int> </object> <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">contentArray: selection.identities</string> - <reference key="source" ref="333357907"/> - <reference key="destination" ref="1031761104"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="333357907"/> - <reference key="NSDestination" ref="1031761104"/> - <string key="NSLabel">contentArray: selection.identities</string> - <string key="NSBinding">contentArray</string> - <string key="NSKeyPath">selection.identities</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">300444</int> - </object> - <object class="IBConnectionRecord"> <object class="IBActionConnection" key="connection"> <string key="label">newIdentity:</string> <reference key="source" ref="262677138"/> @@ -1705,22 +1691,6 @@ <int key="connectionID">300509</int> </object> <object class="IBConnectionRecord"> - <object class="IBBindingConnection" key="connection"> - <string key="label">enabled: selection.canClickOK</string> - <reference key="source" ref="932240937"/> - <reference key="destination" ref="196152721"/> - <object class="NSNibBindingConnector" key="connector"> - <reference key="NSSource" ref="932240937"/> - <reference key="NSDestination" ref="196152721"/> - <string key="NSLabel">enabled: selection.canClickOK</string> - <string key="NSBinding">enabled</string> - <string key="NSKeyPath">selection.canClickOK</string> - <int key="NSNibBindingConnectorVersion">2</int> - </object> - </object> - <int key="connectionID">300510</int> - </object> - <object class="IBConnectionRecord"> <object class="IBOutletConnection" key="connection"> <string key="label">identityTableScrollView</string> <reference key="source" ref="262677138"/> @@ -1900,6 +1870,57 @@ </object> <int key="connectionID">300536</int> </object> + <object class="IBConnectionRecord"> + <object class="IBBindingConnection" key="connection"> + <string key="label">contentArray: content.identities</string> + <reference key="source" ref="333357907"/> + <reference key="destination" ref="1031761104"/> + <object class="NSNibBindingConnector" key="connector"> + <reference key="NSSource" ref="333357907"/> + <reference key="NSDestination" ref="1031761104"/> + <string key="NSLabel">contentArray: content.identities</string> + <string key="NSBinding">contentArray</string> + <string key="NSKeyPath">content.identities</string> + <int key="NSNibBindingConnectorVersion">2</int> + </object> + </object> + <int key="connectionID">300539</int> + </object> + <object class="IBConnectionRecord"> + <object class="IBBindingConnection" key="connection"> + <string key="label">enabled: selection.canClickOK</string> + <reference key="source" ref="932240937"/> + <reference key="destination" ref="196152721"/> + <object class="NSNibBindingConnector" key="connector"> + <reference key="NSSource" ref="932240937"/> + <reference key="NSDestination" ref="196152721"/> + <string key="NSLabel">enabled: selection.canClickOK</string> + <string key="NSBinding">enabled</string> + <string key="NSKeyPath">selection.canClickOK</string> + <object class="NSDictionary" key="NSOptions"> + <bool key="EncodedWithXMLCoder">YES</bool> + <object class="NSMutableArray" key="dict.sortedKeys"> + <bool key="EncodedWithXMLCoder">YES</bool> + <string>NSMultipleValuesPlaceholder</string> + <string>NSNoSelectionPlaceholder</string> + <string>NSNotApplicablePlaceholder</string> + <string>NSNullPlaceholder</string> + <string>NSRaisesForNotApplicableKeys</string> + </object> + <object class="NSMutableArray" key="dict.values"> + <bool key="EncodedWithXMLCoder">YES</bool> + <integer value="0" id="8"/> + <reference ref="8"/> + <reference ref="8"/> + <reference ref="8"/> + <integer value="0"/> + </object> + </object> + <int key="NSNibBindingConnectorVersion">2</int> + </object> + </object> + <int key="connectionID">300546</int> + </object> </object> <object class="IBMutableOrderedSet" key="objectRecords"> <object class="NSArray" key="orderedObjects"> @@ -2665,7 +2686,7 @@ <string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>{{495, 457}, {500, 273}}</string> <reference ref="9"/> - <integer value="0"/> + <reference ref="75542549"/> <string>{{503, 256}, {419, 465}}</string> <reference ref="9"/> <reference ref="9"/> @@ -2697,7 +2718,7 @@ </object> </object> <nil key="sourceID"/> - <int key="maxID">300536</int> + <int key="maxID">300546</int> </object> <object class="IBClassDescriber" key="IBDocument.Classes"> <object class="NSMutableArray" key="referencedPartialClassDescriptions"> @@ -2747,7 +2768,6 @@ <string>editOptions:</string> <string>newIdentity:</string> <string>removeFromFavorites:</string> - <string>resetOptions:</string> <string>select:</string> <string>sliderDidChange:</string> <string>toggleOptionsVisibility:</string> @@ -2766,7 +2786,6 @@ <string>id</string> <string>id</string> <string>id</string> - <string>id</string> </object> </object> <object class="NSMutableDictionary" key="outlets"> |