Re: Creating invisible NSMovieViews
Re: Creating invisible NSMovieViews
- Subject: Re: Creating invisible NSMovieViews
- From: John Hörnkvist <email@hidden>
- Date: Wed, 16 May 2001 14:15:27 +0200
On Wednesday, May 16, 2001, at 01:55 PM, Ken Tabb wrote:
// nsMovie has already been set up (without a movie controller or
NSMovieView, using initWithURL)
NSMovieView *theMovieView;
theMovieView = [NSMovieView alloc]; //instantiates the NSMovieView???
Use the designated initializer of the super class (NSView);
initWithFrame:
I'd also put the view in a window --- one which never gets on screen.
Rule:
Never, ever, call just alloc!
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com