I've got a class that i'm trying to have save an array of information, it's something like
//my .h file
@interface mySprite : CCSprite {
NSMutableArray *myArr;
}
-(void)SetArr: mArr:(NSMutableArray *)someArr;
-(NSMutableArray *)GetArr;
//my .m file
-(void) setArr:(NSMutableArray *)someArr {
myArr = arrFileNames;
NSLog(@"SetSoundFile: \n%@",myArr);
}
-(NSMutableArray *)GetArr {
return myArr;
}
my problem is that when i set myArr, it's taking the values and my NSLog is showing me the contents of myArr. When I go and call GetArr to get the array, it comes back empty.
HELP!