NSMutableArrya problems
NSMutableArrya problems
- Subject: NSMutableArrya problems
- From: Apirak <email@hidden>
- Date: Sat, 11 Dec 2004 11:14:35 +0700
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@hidden
phone: 01-4033320
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden