• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Main Thread UI and Detached Thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Main Thread UI and Detached Thread (From: Mike <email@hidden>)

  • Prev by Date: Re: Main Thread UI and Detached Thread
  • Next by Date: QTKit Capture Filtering
  • Previous by thread: Re: Main Thread UI and Detached Thread
  • Next by thread: Re: Main Thread UI and Detached Thread
  • Index(es):
    • Date
    • Thread