None of the AppKit is thread-safe. Check out -performSelectorOnMainThread. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Micha Fuhrmann Sent: Thursday, July 03, 2008 3:30 AM To: Cocoa-Dev List Subject: NSProgressIndicator thread safe?
Hi everyone, one of my user has its MBP crashing on me, I just can't figure what the problem is, here's the crashed thread: Thread 5 Crashed: 0 com.apple.CoreFoundation 0x964dd0eb CFArrayAppendValue + 43 1 com.apple.AppKit 0x94be0819 -[NSView _focusInto:withClip:] + 1826 2 com.apple.AppKit 0x94bdfc47 -[NSView _gatherFocusStateInto:upTo:withContext:] + 155 3 com.apple.AppKit 0x94bdfbf5 -[NSView _gatherFocusStateInto:upTo:withContext:] + 73 4 com.apple.AppKit 0x94bdfbf5 -[NSView _gatherFocusStateInto:upTo:withContext:] + 73 5 com.apple.AppKit 0x94bdfbf5 -[NSView _gatherFocusStateInto:upTo:withContext:] + 73 6 com.apple.AppKit 0x94bdfbf5 -[NSView _gatherFocusStateInto:upTo:withContext:] + 73 7 com.apple.AppKit 0x94bdf9f3 -[NSView _focusFromView:withContext:] + 366 8 com.apple.AppKit 0x94bdf40c -[NSView lockFocusIfCanDraw] + 778 9 com.apple.AppKit 0x94bdf009 -[NSView lockFocus] + 42 10 com.apple.AppKit 0x94ca55fd -[NSUIHeartBeat lockFocusForView:inRect:needsTranslation:] + 1464 11 com.apple.AppKit 0x94b8334a -[NSProgressIndicator heartBeat:] + 2304 12 com.apple.AppKit 0x94b827bc -[NSUIHeartBeat _heartBeatThread:] + 1597 13 com.apple.Foundation 0x928baf1d -[NSThread main] + 45 14 com.apple.Foundation 0x928baac4 __NSThread__main__ + 308 15 libSystem.B.dylib 0x93b496f5 _pthread_start + 321 16 libSystem.B.dylib 0x93b495b2 thread_start + 34 Is it because NSProgressIndicator isn't thread safe? Micha _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/jabernathy%40burrislogi stics.com This email sent to [EMAIL PROTECTED] _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]