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

Re: scannerWithString


  • Subject: Re: scannerWithString
  • From: zauhar <email@hidden>
  • Date: Fri, 24 May 2002 10:15:28 -0400
  • Scubber-version: 1.7 (portal)

On Friday, May 24, 2002, at 08:53 AM, Ondra Cada wrote:

Incidentally... in this context you *probably* wanted [NSString stringWithContentsOfFile:f] (which automatically autoreleases the string) instead of the alloc/init mantra. Although one can't say for sure without seeing your complete code, there's a high probability this is a memory leak.




Yes, you are exactly right - I made the change you suggested. That was potentially a big memory leak too, given the sizes of the files I need to read. Thanks!

Randy J. Zauhar, PhD
Assoc. Prof. of Biochemistry
Director, Graduate Program in Bioinformatics
Dept. of Chemistry & Biochemistry
University of the Sciences in Philadelphia
600 S. 43rd Street
Philadelphia, PA 19104

Phone: (215)596-8691
FAX: (215)596-8543
E-mail: email@hidden
Web: http://tonga.usip.edu/zauhar

Thought for the ages:

"If you have conceptions of things that you can have no conception of,
then the conception and the thing appear to co-incide." -- C.G. Jung

Thought for the new millennium:

"Nothing is gooder than watching cartoons." -- Catherine Zauhar, age 5
_______________________________________________
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: scannerWithString (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Very long floating point numbers
  • Next by Date: Re: receiving mouse events outside of my window
  • Previous by thread: Re: scannerWithString
  • Next by thread: Re: scannerWithString
  • Index(es):
    • Date
    • Thread