bindings with NSView subclass
bindings with NSView subclass
- Subject: bindings with NSView subclass
- From: Alan Donsky <email@hidden>
- Date: Sun, 22 Feb 2004 22:40:45 -0600
Anybody know how to make bindings work in a custom NSView?
Here is what i have done:
Called exposeBinding: in the views initialize method for the instance
variable i want to bind.
Written KVC compliant acceccors for the instance variable
Called bind:toObject:withKeyPath:options: in awakeFromNib to make the
binding to a controller,
It works pretty well in that changes to the model result in changes to
the view, but the problem is that if i make changes in the view, they
do NOT cause a change in the model. I am not sure how this is supposed
to work.
Thanks. i can give more details if needed.
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.