Re: [NSCFNumber intValue]: unrecognized selector
Re: [NSCFNumber intValue]: unrecognized selector
- Subject: Re: [NSCFNumber intValue]: unrecognized selector
- From: j o a r <email@hidden>
- Date: Fri, 26 Sep 2008 09:22:13 -0700
On Sep 25, 2008, at 6:22 AM, Steve Rossi wrote:
I've deduced that he crash seems to be something timing related
which occurs only at application startup, and only under certain
conditions (i.e. reproduce occassionlly by opening an NSOpenPanel
modal dialog before the application is fully up and running). When I
say the application is fully up and running, I mean a secondary
thread has retrieved data from a network source and populated a
model class. This secondary thread cyclically updates the data about
8x per second by means of a timer in the secondary thread's run loop.
I use Cocoa bindings to display the data in the UI. I'm sure the
problem is happening in the bindings, but I'm having trouble finding
where.
In the general case, and with few exceptions, you can't call your UI
on non-main threads. This means that you can't drive UI updates based
on KVO notifications from non-main threads. Could this be your problem?
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden