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

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


References: 
 >Re: Initializing an Array (From: Jeff Galyan <email@hidden>)

  • Prev by Date: Re: NSGlyph is still a puzzle
  • Next by Date: Checkbox in NSTableView
  • Previous by thread: Re: Initializing an Array
  • Next by thread: Re: Initializing an Array
  • Index(es):
    • Date
    • Thread