- (IBAction) removeFromFavorites: (id) sender;
- (IBAction) editOptions: (id) sender;
-- (IBAction) resetOptions: (id) sender;
- (IBAction) cancelOptions: (id) sender;
- (IBAction) doneOptions: (id) sender;
- (void) dealloc
{
- [identityArrayController removeObserver:self forKeyPath:@"selectedObjects"];
[identityOptionsController removeObserver:self forKeyPath:uses_default_options_keypath];
[refreshTimer release];
[identities release];
forKeyPath:identity_string_keypath
options:NSKeyValueObservingOptionNew
context:NULL];
- [identityArrayController addObserver:self
- forKeyPath:@"selectedObjects"
- options:NSKeyValueObservingOptionNew
- context:NULL];
}
- (void) observeValueForKeyPath:(NSString *) keyPath ofObject: (id) object change: (NSDictionary *) change context:(void *) context
[identityOptionsController setValue:[NSNumber numberWithBool:enabled]
forKeyPath:@"content.canClickOK"];
}
- // clear options on selection change
- else if (object == identityArrayController && [keyPath isEqualToString:@"selectedObjects"]) {
- [identityOptionsController setContent:nil];
- }
}
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
-- (IBAction) resetOptions: (id) sender
-{
- Identity *anIdentity = [identityArrayController.selectedObjects lastObject];
- [identityOptionsController setContent:anIdentity.options];
-}
-
-// ---------------------------------------------------------------------------
-
- (IBAction) cancelOptions: (id) sender
{
identityOptionsController.content = nil;