Skip navigation.
 
mlNSMutableArrya problems
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

Related mailsAuthorDate
mlNSMutableArrya problems Apirak Dec 11, 05:14
mlRe: NSMutableArrya problems Apirak Dec 11, 06:40
mlRe: NSMutableArrya problems Larry Fransson Dec 11, 08:08
mlRe: NSMutableArrya problems mmalcolm crawford Dec 11, 11:15
mlRe: NSMutableArrya problems mmalcolm crawford Dec 11, 11:23