• 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
NSOperation communicating progress?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOperation communicating progress?


  • Subject: NSOperation communicating progress?
  • From: Todd Heberlein <email@hidden>
  • Date: Sun, 03 Feb 2013 17:09:17 -0800

I've added an NSInvocationOperation object to process a large file asynchronously. Everything mostly works fine, but I am trying to add a way for this NSInvocationOperation object to communicate its progress back to the main thread (e.g., setting a percent of the file processed).

I have an NSProgressIndicator value bound to a double variable "loadingProgressPercent", and I have the operation updating that value with

	self.loadingProgressPercent = percent_read * 100.0;

Again, everything seems to work fine. The one problem is I get the following warning at the very end:

	CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.

Is there a common approach for an NSOperation object to communicate its progress back to the main thread and have that progress value update an NSProgressIndicator?

Thanks,

Todd

_______________________________________________

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

  • Follow-Ups:
    • Re: NSOperation communicating progress?
      • From: Todd Heberlein <email@hidden>
    • Re: NSOperation communicating progress?
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: Interface Builder button appearance
  • Next by Date: Re: NSOperation communicating progress?
  • Previous by thread: Re: Interface Builder button appearance
  • Next by thread: Re: NSOperation communicating progress?
  • Index(es):
    • Date
    • Thread