Right so in IB I have an object which is of class "someClass" and an
object controller which has the content outlet set to the
"someclass" object and the keys "someString","someNumber".

The button calls the changeValues method in the delegate

The 2 textfields are bound to the controller with
selection.someString and selection.someNumber respectively.
upon application start the text fields are set with their respective
values as per the init of the model. which shows that the bindings
are working.

BUT pressing the button yields no change from the textfields.  The
nslog shows the model values are changing but this is not propogated
to the UI.
Whats going on?
According to the Apple docs on troubleshooting bindings "The model
class has automatic key-value observing enabled or implements manual
key-value observing for the property."  its obviously not manual so
huh?

Help and clarification or discussion much appreciated.


One thing that I can think of is that you're not changing the fooClass/
someclass instance you think your controls are bound to. That would
explain the log being correct while the UI does not update.

How do you create the delegate and how do you create the fooClass/
someclass instance your object controller is bound to?

Regards
Markus
--

Thanks Markus

ok the delegate is set as an object in IB it is the delegate of Files owner and nsapplication (thats correct isnt it?) it has a class of bindtestdelegate which is where the button action is located. The button calls the changeValues method in the delegate class which then calls the updateValues in the fooClass instance
of the someclass.

should my filesOwner in IB (Currently it is NSApplication) be something different?

the instance of someClass is just dragged straight out of the IB lib as a simple object and assigned the class "someClass" I dont actually have a "nsobjectcontroller subclass" .h/.m in my project but according to the apple docs I dont need one?

Some things are harder than others.

I can email you the entire project if you like if thats easier for your perusal. I would REALLY like to understand what I am not doing right?

Thanks

Kieren


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to