Re: MOKit memory problem
Re: MOKit memory problem
- Subject: Re: MOKit memory problem
- From: Nico <email@hidden>
- Date: Mon, 12 Aug 2002 16:14:20 +0200
Hi Marcel
That's it !!!!!
I didn't think about setting an NSAutoreleasePool up..
Thanks you *very* -VERY- much it works fine now :>
Nico
On 12/08/02 15:58, "Marcel Weiher" <email@hidden> wrote:
>
- (NSDictionary *)parse:(NSString *)string
>
{
>
pool = [[NSAutoreleasePool alloc] init];
>
... your code to parse the strings
>
... your code to create the dictionary
>
[dictionary retain]; // make sure the dictionary survives the next line
>
[pool release]; // temps are now gone!
>
return [dictionary autorelease];
>
}
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.