Re: NSImageView and releasing it's images...
Re: NSImageView and releasing it's images...
- Subject: Re: NSImageView and releasing it's images...
- From: Jean-Nicolas Jolivet <email@hidden>
- Date: Thu, 20 Nov 2008 16:38:23 -0500
Just a quick update...
I ran Leaks (From the Instruments utility)... apparently the only
"leaks" I have are not related to images (some NSPathStore and strings
that I am not responsible for...those appear to be the only leaks)....
So basically should I assume I am not doing anything wrong?? and if
not, why is the memory climbing alarmingly fast each time I preview my
image and doesn't seem to be getting released??
On 20-Nov-08, at 4:10 PM, Jean-Nicolas Jolivet wrote:
I'm using an NSImageView to preview an image result (i.e. you adjust
brightness etc.. then click preview and the image is displayed in
the NSImaveView)...
Basically everytime the image is previewed, a new NSImage object is
created... right now I'm using:
NSImage *displayPreviewImage = [[[NSImage alloc]
initWithData:outputData] autorelease];
However it seems like something is not getting released properly...
I'm looking at Activity Monitor and the memory usage is climbing
fast each time I click the preview button... (like 2-3mb each time)...
Is there a better way to do it?
Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Jean-Nicolas Jolivet
email@hidden
http://www.silverscripting.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden