Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <Foundation/Foundation.h>
- // unArchive.m
- // Reading a property list file and printing it to the screen
- int main (int argc, char *argv[])
- {
- NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- NSDictionary *buildings;
- buildings = [NSDictionary dictionaryWithContentsOfFile: @"buildings"];
- for (NSString *key in buildings)
- NSLog (@"%@: %@", key, [buildings objectForKey: key]);
- [pool drain];
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement