• 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
Getting the original moviebox in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the original moviebox in Cocoa


  • Subject: Getting the original moviebox in Cocoa
  • From: Taxxodium <email@hidden>
  • Date: Wed, 26 Dec 2001 13:18:23 +0100

Hello,

I'm trying to write a movie player in cocoa and so far it has worked very
well. The only problem I have is that the movie show up in the same size as
my NSMovieView (which was created using Interface Builder). Is there any way
to make the NSMovieView of the same size as the original movie?
So far I have this (but as you may know, it doesn't work):

theMovie = [[NSMovie alloc] initWithURL:theFileURL byReference:YES];
[movieView setMovie:theMovie];
[movieView showController:NO adjustingSize:NO];
qtMovie = [[movieView movie] QTMovie];

EnterMovies();

GetMovieBox(qtMovie, &movieRect);

viewRect.origin.x = (float)movieRect.bottom;
viewRect.origin.y = (float)movieRect.left;
viewRect.size.width = ((float)movieRect.right -
(float)movieRect.left);
viewRect.size.height = ((float)movieRect.bottom -
(float)movieRect.top);


ViewRect is an NSRect
MovieRect is a Rect
MovieView is an NSMovieView
TheMovie is an NSMovie
Qtmovie is a Movie

Thanks in advance
_____
Jesus De Meyer
CEO @ E dot software
http://homepage.mac.com/edotsoftware
"Evolution never stops..."


  • Prev by Date: Lists as newsgroups (or: give chuq more work!)
  • Next by Date: multiple targets/selectors
  • Previous by thread: Re: Lists as newsgroups (or: give chuq more work!)
  • Next by thread: Re: Getting the original moviebox in Cocoa
  • Index(es):
    • Date
    • Thread