Re: Initializing an Array
Re: Initializing an Array
- Subject: Re: Initializing an Array
- From: Jeff Galyan <email@hidden>
- Date: Tue, 22 Jan 2002 14:30:09 -0700
Interesting... That means Apple's docs are wrong (or at least the version I
have is -- "Inside Cocoa: Object-Oriented Programming and the Objective-C
Language").
Anyway, the way I fixed the crash was to remove the instance vars and the
-initWithString: method and make the caller pass in a pointer to NSString
with each message.
--Jeff
On 1/22/02 2:21 PM, "Bob Savage" <email@hidden> wrote:
>
> The real app code calls [[super alloc] init]
>
>
Hum... do you really mean this? because you should not be alloc-ing a new
>
memory space, you should only be setting self to the result of [super init].
>
>
Bob