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 PROTECTED]
http://www.silverscripting.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to