Re: NSTableView crashing on scroll+update
Re: NSTableView crashing on scroll+update
- Subject: Re: NSTableView crashing on scroll+update
- From: Marcelo Alves <email@hidden>
- Date: Tue, 31 Jul 2007 15:23:43 -0300
Are you sure you are only updating on the main thread?
Why the use of @synchronized in the above if updates only take place
on the main thread?
-Shawn
Yes, I'm sure, I've checked the [NSThread currentThread]. I wasn't
sure about the @synchronized (ugly Java days), so I removed it and
the same crash occurs. But I did a few changes :
- instead of calling unionSet:, I'm calling setSet;
- updated the willChangeValueForKey (to match the call);
And the program still crashes when scrolling while the set is
updated. Sometimes, the debug log shows me (when I have more rooms
inside the set than the replacement) :
2007-07-31 15:07:00.125 SolarSeek[565] *** Selector
'removeObserver:forKeyPath:' sent to dealloced instance 0x26334070 of
class NSDistantObject.
Break at '-[_NSZombie methodSignatureForSelector:]' to debug.
2007-07-31 15:07:00.125 SolarSeek[565] *** Selector
'removeObserver:forKeyPath:' sent to dealloced instance 0x26334070 of
class NSDistantObject.
Break at '-[_NSZombie methodSignatureForSelector:]' to debug.
Just after the list being updated in the main thread. I've checked
all the items inside the set, the entire tree, and no item with a
pointer value of 0x26334070
was allocated by my classes (in that session).
Should I post the project somewhere?
:: marcelo.alves
_______________________________________________
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