• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting bound UI elements to update during a loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Getting bound UI elements to update during a loop
      • From: James Dessart <email@hidden>
  • Prev by Date: Re: Confirming Item Removal with Bindings
  • Next by Date: Xcode, Cocoa application project, AppleScript
  • Previous by thread: Custom ruler view for NSTextView?
  • Next by thread: Re: Getting bound UI elements to update during a loop
  • Index(es):
    • Date
    • Thread