NSMovieView Madness
NSMovieView Madness
- Subject: NSMovieView Madness
- From: David Cairns <email@hidden>
- Date: Tue, 25 Mar 2003 22:29:46 -0500
hey all --
i am working on a program that allows the user to load quicktime
movies that are stored as an array in a datasource as a clip (a wrapper
for the NSMovie that will eventually provide access to the Quicktime
API).
Anyhoo. In order to send the NSMovie object itself to an NSMovieView
to preview the clip, it took a long annoying string of code like
[[[theDataSource clipSet] objectAtIndex:[clipTable selectedRow]]
theMovie];
So i decided to try to subclass NSMovieView; which would also make
tracking the currently playing clip a lot easier. I tried this and
replaced the code with a simple call to [clipPlayer setClip:theClip];
However, doing so stopped the view from updating at all (it just
remains a white rect in my window :-/).
So i undid what id added, assuming that i had messed with something i
shouldnt have regarding the drawing of the view.
Anyhoo, after returning most everything to the way it was before, i
have the same problem. The only difference is that i set the movie in
the view as a black .jpg (because white rectangles are ugly) in the
awakeFromNib of my controller class.
BUT IT STILL DOESN'T WORK!
The view displays the black square just fine, but for some reason it
refuses to display anything else that i [clipViewer setMovie:] it.
grrrr. anyone have any ideas? using [clipViewer setNeedsDisplay:YES];
doesnt make any difference, and im not sure how well that would react
with a continuously-redrawing view such as the NSMovieView...
well, please respond if you can help me (im a bit of a newbie here, but
im getting there!)
-- dave
_______________________________________________
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.