From b1e46ee8302511b714e244dc8c1cb2f63a814e22 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 21 May 2008 20:51:41 -0400 Subject: [PATCH] We forgot to tell the Word class to actually generate the alphagram * Dictionary/Dictionary.m: Removed an NSLog() * Source/Word.m: (-[initWithWord:]): Need to actually call -[createAlphagram] --- Dictionary/Dictionary.m | 1 - Source/Word.m | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Dictionary/Dictionary.m b/Dictionary/Dictionary.m index 4cd553b..d70daff 100644 --- a/Dictionary/Dictionary.m +++ b/Dictionary/Dictionary.m @@ -39,7 +39,6 @@ int main (int argc, const char * argv[]) NSString *str = [strings objectAtIndex:i]; Word *word = [[Word alloc] initWithWord:str]; [words addObject:word]; - NSLog(@"%@", word); [word release]; } diff --git a/Source/Word.m b/Source/Word.m index 0474923..0610283 100644 --- a/Source/Word.m +++ b/Source/Word.m @@ -31,6 +31,7 @@ if (self = [super init]) { word = [aWord retain]; + [self createAlphagram]; } return self; } -- 2.22.5