NSMovieView's controller is greyed out - why?
NSMovieView's controller is greyed out - why?
- Subject: NSMovieView's controller is greyed out - why?
- From: "Tamara L. Cravit" <email@hidden>
- Date: Thu, 16 Jan 2003 07:44:16 -0800
- Organization: Taylored Software
Hi, all,
I have a panel in my application that displays a QuickTime movie in an
NSMovieView. However, when the NSMovieView starts playing the movie, the
QuickTime movie controller underneath the movie is visible but greyed
out. I checked the checkbox to display the controller in PB, and I have
the following code in my application to load the movie and start playing
it:
----------
- (void) playMovieFromURL: (NSURL *) theURL
{
movie = [[NSMovie alloc] initWithURL: theURL byReference: YES];
if (nil == movie)
{
NSRunAlertPanel(@"Error", @"NSMovie object is nil", @"OK", @"",
@"");
[self close];
}
[movieView setMovie: movie];
[movieView setPlaysEveryFrame: NO];
[movieView setVolume: 1.0];
[movieView showController: YES adjustingSize: NO];
[movieView resizeWithMagnification: 1.0];
[movieView showController: YES adjustingSize: YES];
[thePanel setFrame: [movieView bounds] display: YES];
[movieView start: thePanel];
}
----------
What am I doing wrong to cause the NSMovieView to disable and grey out
the controller? Any suggestions or pointers would be GREATLY
appreciated.
Thanks in advance,
Tamara
_______________________________________________
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.