Re: Strange NSZombie occurring
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