We forgot to tell the Word class to actually generate the alphagram
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 22 May 2008 00:51:41 +0000 (20:51 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 22 May 2008 00:51:41 +0000 (20:51 -0400)
* Dictionary/Dictionary.m: Removed an NSLog()
* Source/Word.m:
(-[initWithWord:]): Need to actually call -[createAlphagram]

Dictionary/Dictionary.m
Source/Word.m

index 4cd553bfba59c8380a1987720e1bed7dd6248461..d70daff0f07f2ecb2b8ebc81b847071f10a3a787 100644 (file)
@@ -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];
        }
        
index 0474923b2987a4ccecd369950497bc83218cdc9d..06102838ba6110e6c61c8e93bb78be4f127134e3 100644 (file)
@@ -31,6 +31,7 @@
        if (self = [super init])
        {
                word = [aWord retain];
+               [self createAlphagram];
        }
        return self;
 }