Here is my solution


#1

Its a bit messy, sorry about that :wink: There is also no error checking.

#import <Foundation/Foundation.h>

int main (int argc, const char * argv[])
{

    @autoreleasepool {
        
        // insert code here...
        NSMutableArray *myList = [NSMutableArray array];
        
        NSMutableDictionary *myDic = [NSMutableDictionary dictionary];
        [myDic setObject:@"Nelson" forKey:@"lastname"];
        
        NSString *name   = [[NSString alloc] initWithString:@"Scott"];
        NSData   *data   = [NSData dataWithContentsOfFile:@"/Users/Scott/Desktop/test.txt"];
        NSDate   *date   = [NSDate date];
        NSNumber *age    = [NSNumber numberWithInt:30];
        NSNumber *weight = [NSNumber numberWithFloat:203.4];
        NSNumber *isIt   = [NSNumber numberWithBool:YES];
    
        [myList addObject:myDic];
        [myList addObject:name];
        [myList addObject:data];
        [myList addObject:date];
        [myList addObject:age];
        [myList addObject:weight];
        [myList addObject:isIt];
        
        [myList writeToFile:@"/Users/Scott/Desktop/myFile.plist" atomically:YES];
        
    }
    return 0;
}