Re: NSMutableArrayForKeyPath
Re: NSMutableArrayForKeyPath
- Subject: Re: NSMutableArrayForKeyPath
- From: Alan Donsky <email@hidden>
- Date: Thu, 18 Mar 2004 23:24:48 -0600
My NSView custom subclass overwrites bind: as follows:
-(void) bind:(NSString *) binding toObject:(id) object
withKeyPath:(NSString *) keyPath options:(NSDictionary *) d
{
[super bind:binding toObject:object withKeyPath:keyPath
options:nil];
controller = [object retain];
controllerKeyPath = [keyPath retain];
}
calling super binds the view to the controller so that changes in the
model are reflected with changes in the view.
I am using (void)textDidChange: so that i can change the model when the
user changes the view.
alan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.