• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSImageView and releasing it's images...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImageView and releasing it's images...


  • Subject: NSImageView and releasing it's images...
  • From: Jean-Nicolas Jolivet <email@hidden>
  • Date: Thu, 20 Nov 2008 16:10:42 -0500

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


  • Follow-Ups:
    • Re: NSImageView and releasing it's images...
      • From: Jean-Nicolas Jolivet <email@hidden>
    • Re: NSImageView and releasing it's images...
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: NSArrayController and table column bindings retain/dealloc woes
  • Next by Date: Re: Wrapping C functions in Objective C proxy objects: naming convention?
  • Previous by thread: Re: Is -rangeOfUserTextChange: supposed to wipe out marked text/diacritical marks?
  • Next by thread: Re: NSImageView and releasing it's images...
  • Index(es):
    • Date
    • Thread