Re: Files and arrays
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.