Help please... NSTextField not updating via Cocoa Bindings
Help please... NSTextField not updating via Cocoa Bindings
- Subject: Help please... NSTextField not updating via Cocoa Bindings
- From: Steven Palm <email@hidden>
- Date: Fri, 10 Dec 2004 13:16:38 -0600
I've searched google, list archives, etc., and cannot find an answer to
this one... Something weird is going on inside my App and I don't know
what.
I have an NSObjectController with an NSArrayController to control a
group of objects. I have an NSTextField through which I want to update
a status message about the currently selected item in the array.
Simple enough, right? Create an iVar in my object, bind the
NSTextField value to the ArrayController object->selected->iVarName as
keypath, and it will update. (Yes, I did check "continuously updates"
to make sure it would always have the data).
The initial value put there upon either new object creation (init) or
initWithCoder does show up. However, during the course of my program
running in which I spawn a sub-process via NSTask and catch it's output
to update my object's status information, the field never changes. It
will only change after I quit the sub-process!
I put calls into the setter accessor method, and I do indeed see that
the events are firing as they should, and the object's value is getting
updated. A few other parts of the GUI also change their enabled state,
etc., based on values in the object that also change while the task is
running, but they don't seem to be having any problems. I'm not using
any validators, value transformers or anything on this.... the iVar is
a simple NSMutableString and I just want the NSTextField to always show
it's current value. ;-)
Any clues on how to track this one down? Please??? :-)
Steve
_______________________________________________
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