Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8046457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:47:30+00:00 2026-06-05T05:47:30+00:00

I am new to working with Objective-C and Cocoa. I have followed the sample

  • 0

I am new to working with Objective-C and Cocoa.

I have followed the sample code for playing a movie with Quicktime that is on here. I am wondering how to expand it so that I can load multiple QTMovies at the beginning of the program, and then play each of them when requested with minimal latency.

My initial strategy was to create a class that holds a QTMovie object and the methods for loading and playing it. Then in my main class I’d have a list of these MovieContainer objects.

When I try implementing this, I get a QTMovieLoadStateError during the loading of each QTMovie with the error message

Domain=NSOSStatusErrorDomain Code=-2098 "The operation couldn’t be completed.
(OSStatus error -2098.)" (component is not thread-safe)

Am I going in completely the wrong direction, or am I merely missing a few lines of code that would make this “thread-safe”?

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T05:47:32+00:00Added an answer on June 5, 2026 at 5:47 am

    Before working with QTMovie objects in a background (non-main) thread you need to call:

    [QTMovie enterQTKitOnThread]
    

    or

    [QTMovie enterQTKitOnThreadDisablingThreadSafetyProtection]
    

    Which one to choose would depend on the codec of your movie file. The second variant will allow non-thread-safe components; for some rare codecs this would be the only way.

    The call must be paired with:

    [QTMovie exitQTKitOnThread]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to objective C and currently working on a small project. I have
I'm new to Objective-C and I have been working with simple programs, and I
I'm new to iOS and Objective-C. I have an application that displays a table
As you can tell, I'm new to Objective-C. I currently have a Singleton working,
I have just started learning Objective-C / Cocoa Touch. I am working on an
I am fairly new to programming and I am working with Objective C. I
I'm new to Objective C and (unfortunately) also to the project I am working
I'm fairly new to working with relational databases, but have read a few books
I'm fairly new to Cocoa and Objective-C. Currently I'm developing a fairly basic application
I'm fairly new to Objective-C and wondering if it's possible to type objects as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.