Re: Newbie Alert: NSMovieView with control won't update when movie changes.
Re: Newbie Alert: NSMovieView with control won't update when movie changes.
- Subject: Re: Newbie Alert: NSMovieView with control won't update when movie changes.
- From: Dietmar Planitzer <email@hidden>
- Date: Mon, 7 Jun 2004 09:34:10 +0200
On Jun 7, 2004, at 3:44 AM, Scott Andrew wrote:
I have a window with an NSMovieView put on the window in
InterfaceBuilder.
I create a new empty movie using the quick time API.
When the user clicks open movie I create a new track in the movie I
assigned
to MSMovieView.
If my NSMovieView has the controls showing, the view and movie control
don't
update correctly. If the controls are not showing the movie updates
correctly.
I have called NSMovieView's setNeedsDisplay with no luck..
Have you already tried doing this ?
MCMovieChanged([myMovieView movieController], [[myMovieView movie]
QTMovie]);
[myMovieView setNeedsDisplay: YES];
MCMovieChanged tells the QT movie controller component to update its
internal state after you've changed some aspect of your movie. Calling
-setNeedsDisplay: afterwards is necessary so that the NSMovieView
actually redraws its contents.
I'm quite surprised to see that NSMovieView has no method wrapping this
function. But then, it's well known that NSMovieView & NSMovie are,
well, way too much focused on minimalism...
Regards,
Dietmar Planitzer
_______________________________________________
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.