Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView crashing on scroll+update






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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >NSTableView crashing on scroll+update (From: Marcelo Alves <email@hidden>)
 >Re: NSTableView crashing on scroll+update (From: "Shawn Erickson" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.