AppKit stuff isn't thread safe. AppKit stuff is usually the user interface stuff (like Progress bars) So that should be run on the main thread, something like:
> [NSThread detachNewThreadSelector:@selector(convert) > toTarget:self > withObject:nil]; > > - (void) convert { > > > if (...) { > NSRunCriticalAlertPanel(...); > } > > int i; > for(i = 0; i < 10; i++) { > [self performSelectorOnMainThread: > @selector(updateProgressBarWithValue:) withObject: [NSNumber numberWithInt: i > waitUntilDone: NO]] > ... > } > > [progressIndicator stopAnimation:self]; > } - (void) updateProgressBarWithValue: (NSNumber *) aNumber { [progressIndicator setDoubleValue: [aNumber doubleValue]]]; } or some such... -- ---- Bruce Johnson [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]