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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to