Re: NSMovieView disappearing
Re: NSMovieView disappearing
- Subject: Re: NSMovieView disappearing
- From: Lorenzo <email@hidden>
- Date: Tue, 11 May 2004 21:53:15 +0200
Hi,
thank you. I tried to do what you said (adding the subview, then setMovie)
and I got the same result, but I have a news. I finally understood that the
movie disappears when I call [superview setNeedsDisplay:YES];
the problem is that since I have other objects on the superview (that the
user can move and resize), I need to call [superview setNeedsDisplay:YES]
just time to time. And whenever I do, the movie disappears. So I have to
resize the window in order to get it reappears. I suppose that the class
NSMovieView has some bugs. I saw other developers here having any sort of
problems with it. I hope Apple fixed these bugs in "Tiger".
Best Regards
--
Lorenzo
email: email@hidden
>
From: Fritz Anderson <email@hidden>
>
Date: Tue, 11 May 2004 12:42:26 -0500
>
To: Lorenzo <email@hidden>
>
Cc: email@hidden
>
Subject: Re: NSMovieView disappearing
>
>
What happens if you send setMovie: after addSubview:?
>
>
Quicktime is bound up rather intimately with the compositing
>
architecture, and an NSMovieView with an NSMovie but no on-screen
>
representation makes me nervous.
>
>
The next thing I'd try is adding [aMovieView setNeedsDisplay: YES]; .
>
>
-- F
>
>
On 11 May 2004, at 5:56 AM, Lorenzo wrote:
>
>
> I create a NSMovieView and set its movie, then I put the NSMovieView
>
> within
>
> the window's content view, but sometimes it disappears. I did as
>
> following:
>
>
>
> aMovieView = [[NSMovieView alloc] initWithFrame:movieViewRect];
>
> [aMovieView setMovie:theMovie];
>
> [self addSubview:aMovieView];
>
>
>
> If I resize the window or I click on the movie controller area, the
>
> movie
>
> appears. Then if I click on the content view, it disappears.
>
> I even call MCIdle([aMovieView movieController]) by a 0.5 timer, but
>
> this
>
> doesn't help.
>
>
>
> Why does my movie disappear? This problem never occurs with
>
> NSImageView.
>
>
>
--
>
Fritz Anderson
>
Consulting Programmer
>
http://resume.manoverboard.org/
_______________________________________________
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.