• 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
Quicktime and NSThread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Quicktime and NSThread


  • Subject: Quicktime and NSThread
  • From: Iikka Virkkunen <email@hidden>
  • Date: Wed, 21 May 2003 23:10:19 +0300

I'm have a program, which generates Quicktime movie from many NSImages. The code relies heavily on the recent sample code "CocoaCreateMovie".

Sometimes the number of frames can be big, and Quicktime generation takes a while. Hence I tried to do the movie in separate NSThread, but run into strange problem: the quicktime appears to be generated OK, but when I try to play it in an associated NSMovieView, the playback stops after every frame. If I save the movie and open it in QuickTime Player, it works OK. Also, if I do the generation in the main thread, it works OK.

I tried detaching the new thread with both
[NSThread detachNewThreadSelector: toTarget: withObject:];
and
[NSApplication detachDrawingThread: toTarget: withObject:];
but the results were similar.

I'm sure I'm missing something obvieous, please point me to it.

Iikka Virkkunen
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Picture parameters
  • Next by Date: Re: Future Objective-C changes
  • Previous by thread: Re: Picture parameters
  • Next by thread: Re: Quicktime and NSThread
  • Index(es):
    • Date
    • Thread