Re: Binding not updating
Re: Binding not updating
- Subject: Re: Binding not updating
- From: Charilaos Skiadas <email@hidden>
- Date: Sat, 16 Jul 2005 00:49:12 -0500
On Jul 16, 2005, at 12:39 AM, Marcus S. Zarra wrote:
I am running into an odd issue with a combination of Cocoa bindings
and a ManagedObject.
I have an object, Object A which has a to-one relationship with Object
B. I have a reference to Object A in my controller class. I defined
an ObjectController in IB that references Object B via Object A in the
controller class. I have several NSTextFields that are linked to this
NSObjectController and when I first pull up the window it displays
correctly.
However, when I change the relationship in Object A to point to a
different instance of Object B via the setValue:forKey method the text
fields do not get updated in the GUI. If I close the window and
reload it then it displays the updated data just fine.
Is there something I am missing that turns on the auto update? It is
my understanding from my reading that the update would be automatic
and that this is what the bindings are for?
Have you enabled the "automatically updates content" in the
attributes inspector of the controller? If you created the first
controller by dragging an entity from the model, it was automatically
set for you, but if you created the controller from IB, then it would
not have been set.
Any assistance would be greatly appreciated.
Marcus
Haris
_______________________________________________
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