contents of NSArray are static, you can't add or delete objects on it, with NSMutableArray you can add, delete, sort, etc, read the Docs..
for saving to NSUserDefaults:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:myArray1 forKey:@"myArray1"];
...
[defaults synchronize];
Last edited by vbovio; 08-27-2009 at 05:45 PM.
|