Re: Initializing an Array
Re: Initializing an Array
- Subject: Re: Initializing an Array
- From: Bob Savage <email@hidden>
- Date: Tue, 22 Jan 2002 19:03:38 -0600
Jeff,
I looked back at my copy of the book and it definitely says (page 86 in my
copy, "NeXT Developer's Library: Object-Oriented Programming and the
Objective-C Language"):
[super init]
NOT
[[super alloc] init]
If your copy has an error like this, could you please send the Apple
documentation team a bug report with the page number on which the error
occurs.
Bob
on 1/22/02 3:30 PM, Jeff Galyan at email@hidden wrote:
>
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").
>
>
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