Re: Main Thread UI and Detached Thread
Re: Main Thread UI and Detached Thread
- Subject: Re: Main Thread UI and Detached Thread
- From: j o a r <email@hidden>
- Date: Fri, 4 Apr 2008 00:24:45 -0700
On Apr 4, 2008, at 12:08 AM, Mike wrote:
If that is the case then why does the progress bar get updated with
the correct value every time when I insert the sleep( 1 ) call?
Obviously it wouldn't be displaying the correct value if garbage was
being sent to the selector.
I don't think it's constructive to take the discussion in that
direction.
You should start out by fixing your code to pass objects - Perhaps
something like this:
- (void) setProgressBarValue:(NSNumber *) value
{
NSLog(@"Bar: %@, Value: %f", progressBar, [value doubleValue]);
[progressBar setDoubleValue: [value doubleValue]];
}
Like I said earlier, I think that you would benefit from posting a
sample project that reproduces the 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