Re: NSURL Tutorial?
Re: NSURL Tutorial?
- Subject: Re: NSURL Tutorial?
- From: "Steven W. Riggins" <email@hidden>
- Date: Sun, 28 Oct 2001 16:09:29 -0800
At 2:14 PM -0800 10/28/01, Steven W. Riggins wrote:
>
> imageData = [NSData dataWithContentsOfURL:imageURL];
>
> [imageData retain];
>
> image = [[NSImage alloc] initWithData:imageData];
>
>
>
>}
>
>
Actually it looks like your way (telling the data to get the data, not the NSURL] does not leak.
>
I guess this leak still exists (see Andrew's email to me) when the URL is an HTTP url (and not file for example)
I am still working on a solution for this memory leak (until Apple fixes it of course heh)
Steve