• 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
Re: I'm losing my memory (GC & NSImageView)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I'm losing my memory (GC & NSImageView)


  • Subject: Re: I'm losing my memory (GC & NSImageView)
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 5 Nov 2007 01:18:23 +0100

Am 04.11.2007 um 23:56 schrieb Stuart Rogers:
I'm not sure if there's anything I can do here - once the NSImage
is created I pass it on to my NSImageView and forget it (I'm not
caching it in my code).  When I feed it a new image, the old one
should no longer have any strong references unless there's some
caching going on by NSImageView (or something else within its
framework).  This is where I start getting out of my depth.


Is this NSImage loaded from a file ? In that case, NSImage does some cacheing under the hood, as far as I've been told. However, that's not a leak, you needn't worry about that. It does so both with and without GC, to speed up cases where the same image is requested over and over again.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

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


References: 
 >Re: I'm losing my memory (GC & NSImageView) (From: Stuart Rogers <email@hidden>)

  • Prev by Date: Re: FYI - installer packages are the preferred deployment method now
  • Next by Date: Re: FYI - installer packages are the preferred deployment method now
  • Previous by thread: Re: I'm losing my memory (GC & NSImageView)
  • Next by thread: Re: I'm losing my memory (GC & NSImageView)
  • Index(es):
    • Date
    • Thread