NSMovieView & autorelease
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/
------------------------------------------------------------------------------