Re: Need Help w/ NSWindow and NSMovieView...
Re: Need Help w/ NSWindow and NSMovieView...
- Subject: Re: Need Help w/ NSWindow and NSMovieView...
- From: Matt Judy <email@hidden>
- Date: Tue, 25 Jun 2002 16:38:00 -0700
Albert Atkinson wrote:
Problem is that the window never appears and the movie never plays.
Note that applicationDidFinishLaunching: is an NSApplication delegate
method, and that you'll have to set up MovieController as the delegate
for your application. Otherwise, this method will never be called.
Also, the method setMovie: takes an object of type (NSMovie *). NSMovie
has a method: - (id)initWithURL:(NSURL*)url byReference:(BOOL)byRef
which will let you create one. You can use NSURL to create a file: URL
from the resource path you're already obtaining. Don't forget to
release your movie when you're done with it.
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)
Chimera's splash screen is is a subclass of NSWindow which I created
just for that purpose. It is initialized programmatically in the init:
method of Chimera's main controller. The source is freely available.
-- Matt
_______________________________________________
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.