Re: retain before [NSImageView setImage:] ?
Re: retain before [NSImageView setImage:] ?
- Subject: Re: retain before [NSImageView setImage:] ?
- From: "Erik M. Buck" <email@hidden>
- Date: Fri, 3 May 2002 13:58:53 -0500
As is always the case, the documentation does not say NSImageView retains an
image because you do not need to know. It might copy the image. If it
wants to keep a reference to the image, it is responsible for retaining it.
It is not your problem. Don't worry about it.
----- Original Message -----
From: "nicolas berloquin" <email@hidden>
To: <email@hidden>
Sent: Friday, May 03, 2002 1:27 PM
Subject: retain before [NSImageView setImage:] ?
>
Hi !
>
>
the online docs don't say whether NSImageView calls retain on the image
>
you pass as a parameter to setImage: .
>
should I retain/release it myself, or is everything taken care of by
>
cocoa ?
>
>
and what if I call setImage: a second time with a different image ?
>
>
thanks
>
_______________________________________________
>
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.
_______________________________________________
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.