Need Help w/ NSWindow and NSMovieView...
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.