• 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: Matt Ball <email@hidden>
  • Date: Sun, 10 Jul 2005 21:55:40 -0400

setImage: is in a different file (an NSCell subclass). There is a
local variable in "tableViewController" and an iVar in "titleCell."

- Matt Ball

On 7/10/05, Rosyna <email@hidden> wrote:
> I'm confused here... is image an ivar or a local variable? It is used
> as an ivar in setImage: and a local variable here.
>
> Ack, at 7/10/05, Matt Ball said:
>
> >Here's my code:
> >
> >- (void)tableView:(NSTableView *)tableView willDisplayCell:(id)cell
> >forTableColumn:(NSTableColumn *)tableColumn row:(int)row
> >{
> >       int indexToQueryForImage = row * 6 + 1;
> >       NSImage *image = [array objectAtIndex:indexToQueryForImage];
> >       image = [self shadowedImageWithImage:image];
> >
> >       if(image != nil)
> >               [cell setImage:image];
> >}
>
> --
>
>
> Sincerely,
> Rosyna Keller
> Technical Support/Holy Knight/Always needs a hug
>
> Unsanity: Unsane Tools for Insanely Great People
>
 _______________________________________________
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

References: 
 >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: Zach Wily <email@hidden>)
 >Re: Why does this leak memory? (From: Matt Ball <email@hidden>)

  • Prev by Date: Re: NSColorPanel Magnification tool
  • 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