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

Re: Files and arrays


  • Subject: Re: Files and arrays
  • From: Jim Balhoff <email@hidden>
  • Date: Sat, 16 Nov 2002 10:02:35 -0500

On Saturday, November 16, 2002, at 09:41 AM, Ondra Cada wrote:

On Saturday, November 16, 2002, at 02:25 , Jim Balhoff wrote:

// caution - typed into Mail by a beginning programmer!

who, alas, just kind of copied down Jeff Knee's buggy code (or did you not?)

I can assure you, I did not! Although it may look that way as messages are taking quite a while to make it to the list. While I appreciate your improvements, perhaps I should have just suggested some methods to use. The buggy code is purely my own.

Person *aPerson = [[Person alloc] initWithString:nextPersonString];

This would leak again. What you actually wanted -- presumed Person does not have a convenience constructor -- was

aPerson=[[[Person alloc] initWithString:nextPersonString] autorelease]
;
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc

- Jim
_______________________________________________
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.

  • Follow-Ups:
    • Re: Files and arrays
      • From: Ondra Cada <email@hidden>
References: 
 >Re: Files and arrays (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Close button on Single Window Utilities
  • Next by Date: Re: NSDictionary question
  • Previous by thread: Re: Files and arrays
  • Next by thread: Re: Files and arrays
  • Index(es):
    • Date
    • Thread