//
// main.m
// CH19-2 read property lists
//
// Created by jason on 2011/5/19.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
//#import
#import
#import
#import
#import
#import
int main(int argc, char *argv[])
{
NSAutoreleasePool *pool=[[NSAutoreleasePool alloc] init];
NSDictionary *glossary;
glossary=[NSDictionary dictionaryWithContentsOfFile:@"glossary"];
for(NSString *key in glossary)
NSLog(@"%@: %@", key, [glossary objectForKey:key]);
[pool drain];
return 0;
//return NSApplicationMain(argc, (const char **) argv);
}
沒有留言:
張貼留言