• 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: MOKit memory problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: MOKit memory problem (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Undocumented Cocoa?
  • Next by Date: Re: Undocumented Cocoa?
  • Previous by thread: Re: MOKit memory problem
  • Next by thread: Re: MOKit memory problem
  • Index(es):
    • Date
    • Thread