• 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: Strange NSZombie occurring
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange NSZombie occurring


  • Subject: Re: Strange NSZombie occurring
  • From: Andy Lee <email@hidden>
  • Date: Sun, 07 Aug 2011 10:51:11 -0400

On Aug 7, 2011, at 10:25 AM, Andy Lee wrote:

> On Aug 7, 2011, at 9:10 AM, Scott Steinman wrote:
>> -(void)setUp
>> {
>>  words = [[self wordsFromPhrase:phrase]] retain];
>>  [self start];
>> }
>
> Is this your exact code? You use wordsFromPhrase: here but the method below is wordsInPhrase:.
>
>> -(NSArray *)wordsInPhrase:(NSString *)thePhrase
>> {
>>  NSArray *wordArray;
>>
>>  [wordArray arrayByAddingObjectsFromArray:[phrase componentsSeparatedByString:@" "]];
>>  numWords = [wordArray count];
>>  return wordArray;
>> }
>
> Some problems with this method:

Another thing: you are ignoring the argument thePhrase.

--Andy

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Strange NSZombie occurring
      • From: "Dr. Scott Steinman" <email@hidden>
References: 
 >Strange NSZombie occurring (From: Scott Steinman <email@hidden>)
 >Re: Strange NSZombie occurring (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: NSImageView vs IKImageView
  • Next by Date: Re: Strange NSZombie occurring
  • Previous by thread: Re: Strange NSZombie occurring
  • Next by thread: Re: Strange NSZombie occurring
  • Index(es):
    • Date
    • Thread