Dual array controller
Dual array controller
- Subject: Dual array controller
- From: Massimiliano Origgi <email@hidden>
- Date: Sat, 15 Oct 2005 16:51:06 +0200
Hello,
I'm looking for a clean solution for a binding implementation I have
done. My current implementation works so far, but it's somewhat hacky.
I have an NSArrayControlled and its table view as the master interface.
I, then, have another NSArrayController and a details interface. I have
setup a second controller for the detail interface as it lives in a
separate Nib.
I have bound the selection key of the first controller to the
contentObject of the second.
At this point things show up and work mostly fine, but when I edit
something in one of the objects in the table view its change is not
noticed by the inspector.
The hacky solution is to perform a willChange/didChange set of calls on
the selection property of the first array to enforce the update on the
inspector.
A cleaner solution would be probably to setup observers in the
inspector for all objects and keys in the selection every time it
changes, but maybe I'm missing a simpler method, is there any?
Tnx!
Massimiliano Origgi
http://www.intuiware.com
Coming Soon...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden