• 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
[Q] Handling "cancel" or "stop" button for NSProgressIndicator and on-going task
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Q] Handling "cancel" or "stop" button for NSProgressIndicator and on-going task


  • Subject: [Q] Handling "cancel" or "stop" button for NSProgressIndicator and on-going task
  • From: JongAm Park <email@hidden>
  • Date: Thu, 01 Sep 2011 09:33:26 -0700

Hello,

I wrote codes to processing images on a second thread and the main thread displays and handles "progress dialog box".
Because it is not possible to create a "UI thread" according to Cocoa framework, I had the main thread process the progress dialog box, while a second thread process images.

However, a problem occurred when I decided to create QuickTime movie files with the processed images on the second thread.

It turned out that QuickTime movie can't be created on a second thread, which is not a main thread.

An uncaught exception was raised
QTMovie_QuickTime class must be initialized on the main thread.
*** Terminating app due to uncaught exception 'QTMovieInitializedOnWrongThread', reason: 'QTMovie_QuickTime class must be initialized on the main thread.'

Then, is there any code pattern or example to handle progress dialog  and time consuming tasks in a main thread without blocking user interaction?
Or a solution doesn't need to be confined in that model. If it can utilize a second thread, it is better.

Can anyone share his/her idea with me?

Thank you.
JongAm Park_______________________________________________

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: [Q] Handling "cancel" or "stop" button for NSProgressIndicator and on-going task
      • From: JongAm Park <email@hidden>
  • Prev by Date: Re: setTitleWithMnemonic
  • Next by Date: Overwhelming Options
  • Previous by thread: Re: setTitleWithMnemonic
  • Next by thread: Re: [Q] Handling "cancel" or "stop" button for NSProgressIndicator and on-going task
  • Index(es):
    • Date
    • Thread