• 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: Why does this leak memory?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does this leak memory?


  • Subject: Re: Why does this leak memory?
  • From: Charilaos Skiadas <email@hidden>
  • Date: Sun, 10 Jul 2005 23:47:03 -0500


On Jul 10, 2005, at 11:40 PM, Matt Ball wrote:

Current Image: NSImage 0x3ae2d0 Size={38, 38} Reps=(
    NSCachedImageRep 0x3a5210 Size={38, 38}
ColorSpace=NSCalibratedRGBColorSpace BPS=8 Pixels=38x38 Alpha=YES
)

New image: NSImage 0x3b3c10 Size={38, 38} Reps=(
    NSCachedImageRep 0x3b6570 Size={38, 38}
ColorSpace=NSCalibratedRGBColorSpace BPS=8 Pixels=38x38 Alpha=YES
)

*crash*

Ah, so setImage is only called once, when the view is first populated and before you click on a row? So the crash must occur before [cell setImage:image]; comes around the second time. How about an NSLog (@"Array Image: %@", image); between these two lines:


    NSImage *image = [array objectAtIndex:indexToQueryForImage];
    image = [self shadowedImageWithImage:image];

- Matt Ball

Haris


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Why does this leak memory?
      • From: Matt Ball <email@hidden>
References: 
 >Why does this leak memory? (From: Matt Ball <email@hidden>)
 >Re: Why does this leak memory? (From: Matt Ball <email@hidden>)
 >Re: Why does this leak memory? (From: Charilaos Skiadas <email@hidden>)
 >Re: Why does this leak memory? (From: Matt Ball <email@hidden>)
 >Re: Why does this leak memory? (From: Matt Ball <email@hidden>)
 >Re: Why does this leak memory? (From: Charilaos Skiadas <email@hidden>)
 >Re: Why does this leak memory? (From: Matt Ball <email@hidden>)
 >Re: Why does this leak memory? (From: Matt Ball <email@hidden>)

  • Prev by Date: Re: Why does this leak memory?
  • Next by Date: Re: Why does this leak memory?
  • Previous by thread: Re: Why does this leak memory?
  • Next by thread: Re: Why does this leak memory?
  • Index(es):
    • Date
    • Thread