NSView subclass + manual binding
NSView subclass + manual binding
- Subject: NSView subclass + manual binding
- From: Raphael Sebbe <email@hidden>
- Date: Mon, 9 Feb 2004 09:49:02 +0100
Hi all,
I am writing a subclass of NSView that has a property that I want to
bind to the a document attribute.
Using manual binding, I found it is possible to directly bind the view
to the document, using smth like this:
[_targetView bind:@"time" toObject:self withKeyPath:@"editingTime"
options:nil];
[self bind:@"editingTime" toObject:_targetView withKeyPath:@"time"
options:nil];
What are pros/cons of using direct binding, as opposed to using a
controller in between ?
Am I forced to have bi-directional binding in the case of direct
binding (it seems to) ?
Thanks !
Raphael
_______________________________________________
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.