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:24:54 -0700
Ack, at 7/10/05, Matt Ball said:
No. If I have 50 rows, there will be 50 images in the array. The other
indexes contain other information about the row, such as whether a
button should be enabled or disabled.
Well, that seems backwards. Why not have an array containing
dictionaries... Each dictionary with the key being the metadata
you're using. Such as [[array objectAtIndex:row]
objectForKey:@"SexyImage"];
Makes it much easier to extend the amount of metadata you are saving.
I put that NSLog() into my code, and it reports "NSImage" as expected,
even when it crashes (signal 11).
In this case, enable Zombies. Check NSDebug.h
- Matt Ball
On 7/10/05, Rosyna <email@hidden> wrote:
> So if there are 50 rows, you'll have 301 images in the array?
--
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