I want a NSMutableArray global. I have the following setup:
code.h
extern NSMutableArray *global
@interface
@end
code.m
NSMutableArray *global=nil;
@implementation
...
global=variable_mutablearray; //copy variable_mutablearray to global
@end
I'm pretty sure that what I'm doing setting an existing nsmutablearray to the global variable is not correct. What should I be doing?