FROM : Apirak
DATE : Sat Dec 11 05:14:35 2004
I store my object (Word) in NSMutableArray. How do I get it back like
this
NSMutableArray *myArray = [[NSMutableArray alloc] init];
Word *word = [[Word alloc] init];
[word setWord:@"test"];
[myArray addObject:word];
Word *wd = [[myArray objectAtIndex:0] retain];
NSLog(@"word equal %@", [wa getWord]);
don't have any error in compile time but in run time it show this
message
XMLData has exited due to signal 10 (SIGBUS).
I am very new to Obj-C and Cocoa, What happen with my code?
Apirak Panatkool
e-mail: <email_removed>
phone: 01-4033320
DATE : Sat Dec 11 05:14:35 2004
I store my object (Word) in NSMutableArray. How do I get it back like
this
NSMutableArray *myArray = [[NSMutableArray alloc] init];
Word *word = [[Word alloc] init];
[word setWord:@"test"];
[myArray addObject:word];
Word *wd = [[myArray objectAtIndex:0] retain];
NSLog(@"word equal %@", [wa getWord]);
don't have any error in compile time but in run time it show this
message
XMLData has exited due to signal 10 (SIGBUS).
I am very new to Obj-C and Cocoa, What happen with my code?
Apirak Panatkool
e-mail: <email_removed>
phone: 01-4033320
| Related mails | Author | Date |
|---|---|---|
| Apirak | Dec 11, 05:14 | |
| Apirak | Dec 11, 06:40 | |
| Larry Fransson | Dec 11, 08:08 | |
| mmalcolm crawford | Dec 11, 11:15 | |
| mmalcolm crawford | Dec 11, 11:23 |






Cocoa mail archive

