• 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: Creating invisible NSMovieViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Creating invisible NSMovieViews
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Creating invisible NSMovieViews
  • Next by Date: Re: Creating invisible NSMovieViews
  • Previous by thread: Creating invisible NSMovieViews
  • Next by thread: Re: Creating invisible NSMovieViews
  • Index(es):
    • Date
    • Thread