• 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
NSMovieView & autorelease
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMovieView & autorelease


  • Subject: NSMovieView & autorelease
  • From: Lieven Dekeyser <email@hidden>
  • Date: Tue, 6 Nov 2001 13:17:38 +0100 (CET)

ok... I think I understand the autorelease stuff now, but I'm not
completely sure about what happens in the following example:

NSMovie *movie = [[NSMovie alloc]initWithURL:url byReference:YES];
if (movie) {
[movieView setMovie:movie];
[movie autorelease];
}

but maybe I don't have to know...
does an NSMovieView keep a copy of the NSMovie object, or is it just
retaining the movie? Either way... the example is correct, right?

--Lieven

------------------------------------------------------------------------------
Lieven Dekeyser
http://studwww.rug.ac.be/~lbdkeyse/
------------------------------------------------------------------------------


  • Prev by Date: NSMovieView & autorelease
  • Next by Date: RE: Dynamically connecting IBOutlet
  • Previous by thread: NSMovieView & autorelease
  • Next by thread: Info window scenario
  • Index(es):
    • Date
    • Thread