• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSMovieView's controller is greyed out - why?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: NSBundle now... (From: Vince DeMarco <email@hidden>)

  • Prev by Date: Re: iChat Files
  • Next by Date: Re: iChat Files
  • Previous by thread: Re: NSBundle now...
  • Next by thread: SSH support in CVS menu of PB
  • Index(es):
    • Date
    • Thread