• 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: 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


  • Follow-Ups:
    • Re: Initializing an Array
      • From: Bob Savage <email@hidden>
    • Re: Initializing an Array
      • From: email@hidden
References: 
 >Re: Initializing an Array (From: Bob Savage <email@hidden>)

  • Prev by Date: Re: Question about movePath
  • Next by Date: Re: Initializing an Array
  • Previous by thread: Re: Initializing an Array
  • Next by thread: Re: Initializing an Array
  • Index(es):
    • Date
    • Thread