Re: Why does this leak memory?
Re: Why does this leak memory?
- Subject: Re: Why does this leak memory?
- From: Rosyna <email@hidden>
- Date: Sun, 10 Jul 2005 19:03:00 -0700
Here's another question.. What's up with objectAtIndex:row*6+1? Is
that valid? I mean, just how many images do you have in your array?
Ack, at 7/10/05, Matt Ball said:
- (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