• 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
Re: Help please... NSTextField not updating via Cocoa Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help please... NSTextField not updating via Cocoa Bindings


  • Subject: Re: Help please... NSTextField not updating via Cocoa Bindings
  • From: Steven Palm <email@hidden>
  • Date: Fri, 10 Dec 2004 22:36:03 -0600


On Dec 10, 2004, at 10:13 PM, Brendan Younger wrote:
I don't believe that Cocoa bindings are thread-safe, however, AsyncSocket doesn't actually create any new run loops.

Ah, my bad, I thought it did. Well, that's not the issue at all, then. I'm not calling anything (so far as I'm aware :-) that would be starting any other threads.


It may be that you have inadvertently created two instances of your controller and are only updating the information in one of them while the bindings are on the other one.

Now that is something to consider, but I can't see how it's likely... I'm now in the process of trying to go through all the code to make sure that somewhere I'm not inadvertently bypassing accessors/etc. I have a group of buttons that are enabled/disabled based on a BOOL key in my object that is contained by an NSArrayController. It works fine for the most part, but there are places where it gets updated and the UI does not update. I'm definitely using the accessors at that point, and debugging it shows the ivar has the right value. If I implement my own KVO on that, I get called, but the UI doesn't update. FRUSTRATING.


If I can simplify it to a test case, I'll find a place to stash the code for review. Otherwise, I have nothing to hide (it will be a free release anyway) and would post the project for anyone willing to spend a bit of time looking at it.

Thanks!

 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
References: 
 >Help please... NSTextField not updating via Cocoa Bindings (From: Steven Palm <email@hidden>)
 >Re: Help please... NSTextField not updating via Cocoa Bindings (From: Steven Palm <email@hidden>)

  • Prev by Date: NSFileWrapper Directories
  • Next by Date: Re: NSMutableArrya problems
  • Previous by thread: Re: Help please... NSTextField not updating via Cocoa Bindings
  • Next by thread: sample iSight code for Cocoa
  • Index(es):
    • Date
    • Thread