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

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.

References: 
 >Need Help w/ NSWindow and NSMovieView... (From: Albert Atkinson <email@hidden>)

  • Prev by Date: Re: isFilePackageAtPath:@"/dev" error
  • Next by Date: Re: ADC TV & RE: Tech Support Incidents available
  • Previous by thread: Need Help w/ NSWindow and NSMovieView...
  • Next by thread: Shadows
  • Index(es):
    • Date
    • Thread