Re: Updating an NSMovieView in a busy loop
Re: Updating an NSMovieView in a busy loop
- Subject: Re: Updating an NSMovieView in a busy loop
- From: "Theodore H. Smith" <email@hidden>
- Date: Tue, 26 Jul 2005 18:17:01 +0100
On 26 Jul 2005, at 16:07, Charilaos Skiadas wrote:
On Jul 26, 2005, at 5:19 AM, Theodore H. Smith wrote:
On 26 Jul 2005, at 11:15, Theodore H. Smith wrote:
However, doing the same on an NSMovieView, fails. I don't get
anything displayed.
I should mention, that the NSMovieView DOES display properly, but
only after the method ends and we return back to the normal app
event processing. It doesn't display during the busy loop when
[display] is called, unlike my NSTextView which displays.
Perhaps that's a clue, maybe I should be doing stuff with the
app's events.
Presumably your busy loop is in a secondary thread? If not, it
probably should. If it is, then you should be using
performSelectorInMainThread: to update your movie view from the
main thread.
Unless I've misunderstood something in your setup.
I decided to give up this approach, and use a standard
NSProgressIndicator. If only I knew of it before this NSMovie attempt.
_______________________________________________
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