Getting bound UI elements to update during a loop
Getting bound UI elements to update during a loop
- Subject: Getting bound UI elements to update during a loop
- From: Rick Hoge <email@hidden>
- Date: Thu, 14 Apr 2005 10:50:45 -0400
I have a numerical fitting application in which I would like to display
the chi squared value and other parameters on the fly during the fit
procedure. I'd like to do this by binding an NSTextField to an
instance variable chiSquared
I have set up instance variables I want to display, added set and get
methods, and call the 'set' method inside the fitting loop. However
the NSTextField does not update until the end of the fitting procedure
(i.e. the end of the runloop). It seems like the bindings are updated
once per runloop - does anyone know how I could force more frequent
updates to bound UI elements?
I have tried sending displayIfNeeded to the window when updates should
occur but this does not seem to help. The only way I'm getting updates
in the loop is to send setFloatValue: to the NSTextField. I use
NSProgressIndicators all the time inside loops but not with bindings...
thanks for any hints on this!
Rick
_______________________________________________
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