• 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
Need Help w/ NSWindow and NSMovieView...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Need Help w/ NSWindow and NSMovieView...


  • Subject: Need Help w/ NSWindow and NSMovieView...
  • From: Albert Atkinson <email@hidden>
  • Date: Tue, 25 Jun 2002 07:12:38 -0500

Hello!

I am having problems with my NSWindow and NSMovieView. What I am
trying to do is open the window while the app is launching (kind of
like a splash screen), load a movie in the NSMovieView and play it.

Here is the code I have in "MovieController.h":

/* MovieController */

#import <Cocoa/Cocoa.h>

@interface MovieController : NSObject
{
IBOutlet id MovieWin;
IBOutlet id MovieView;
}
@end

And here is the code I have in "MovieController.m":

#import "MovieController.h"

@implementation MovieController

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
NSString *introMov;
NSBundle *programBundle = [NSBundle bundleForClass:[self
class]];
introMov = [programBundle pathForResource:@"Intro"
ofType:@"mov"];

[MovieWin makeKeyAndOrderFront: self];
[MovieView setMovie: introMov];
[MovieView start: self];
}

@end

Problem is that the window never appears and the movie never plays.

The second problem is I am using the wrong notification, the way I
have it, the NSWindow should open when the app is done launching, I
want it to open while it is still launching (look at chimera for an
example)

And the last problem is I can find no method to make this window
full screen.

Cam anyone help me fix the above problems?

Thanks!

Albert
_______________________________________________
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.

  • Follow-Ups:
    • Re: Need Help w/ NSWindow and NSMovieView...
      • From: Matt Judy <email@hidden>
  • Prev by Date: Re: Escaping spaces in paths
  • Next by Date: Re: Dealloc method needed?
  • Previous by thread: Code design question
  • Next by thread: Re: Need Help w/ NSWindow and NSMovieView...
  • Index(es):
    • Date
    • Thread