Hey all,
So I need to save an NSArray to a file but the problem is the NSArray has custom objects. Someone else has posted a question like it but heres my problem. Im using the Three20 API and am trying to save the TTLauncher view (It looks like the iphone home view) and the way you do that is as follows:
Code:
array = [NSArray arrayWithObjects:
[NSArray arrayWithObjects:
[[[TTLauncherItem alloc] initWithTitle:@"Game1"
image:@"bundle://Icon.png"
URL:@"tt://game1" canDelete:NO] autorelease],
[[[TTLauncherItem alloc] initWithTitle:@"Game2"
image:@"bundle://Icon.png"
URL:@"tt://game2" canDelete:NO] autorelease],
[[[TTLauncherItem alloc] initWithTitle:@"Game3"
image:@"bundle://Icon.png"
URL:@"tt://game3" canDelete:NO] autorelease],
[[[TTLauncherItem alloc] initWithTitle:@"Game4"
image:@"bundle://Icon.png"
URL:@"tt://game4" canDelete:NO] autorelease],
[[[TTLauncherItem alloc] initWithTitle:@"Game5"
image:@"bundle://Icon.png"
URL:@"tt://game5" canDelete:NO] autorelease],
nil],
nil
];
So how could I save this array in a file?
Thanks
-Korki