• 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
Updating an NSMovieView in a busy loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Updating an NSMovieView in a busy loop


  • Subject: Updating an NSMovieView in a busy loop
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Tue, 26 Jul 2005 11:15:30 +0100


How can I update an NSMovieView in a busy loop?

I have some code that I have been porting, and there is no way I can rework this code to be using timers. I am limited in how much I can modify this code, because it isn't my code, and it is a lot of complex code.

I tried updating an NSTextView in a busy loop, and that worked just fine using display.

However, doing the same on an NSMovieView, fails. I don't get anything displayed.

My idea, is to eventually just create a seperate thread, which will call [display] on the NSMovieView, but only as long as the very long method method is running. As soon as that method closes, I want it to communicate to the thread that the UI no longer needs updating. The thread will have a look that checks for this communication frequently, and once it picks it up, it will stop updating the UI.

Should I abandon using NSMovieView, and just use NSImageView instead and extract each frame from the movie, instead? I'd rather avoid that if there's a better way.

Thanks for your help everyone! My app is almost complete now, I'm just finishing off some final touches to make it look exactly as required of me.

--
http://elfdata.com/plugin/ Industrial strength string processing, made easy.


"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Updating an NSMovieView in a busy loop
      • From: "Theodore H. Smith" <email@hidden>
  • Prev by Date: Re: email processing on Mac OS X.
  • Next by Date: Re: Updating an NSMovieView in a busy loop
  • Previous by thread: Re: Enable PopUp if NSTextField > 0
  • Next by thread: Re: Updating an NSMovieView in a busy loop
  • Index(es):
    • Date
    • Thread