Problem with stockz


#1

My stockz program is not working
here is the output:

2013-02-19 19:15:50.343 stockz[11108:303] I have (null) shares of AAPL 2013-02-19 19:15:50.347 stockz[11108:303] I have (null) shares of GOOG

and here is the code:

[code]#import <Foundation/Foundation.h>

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

@autoreleasepool {
    
    NSMutableArray *stocks = [[NSMutableArray alloc] init];
    
    NSMutableDictionary *stock;
    
    stock = [NSMutableDictionary dictionary];
    [stock setObject:@"AAPL"
              forKey:@"symbol"];
    [stock setObject:[NSNumber numberWithInt:200]
              forKey:@"numberOfStocks"];
    [stocks addObject:stock];
    stock = [NSMutableDictionary dictionary];
    [stock setObject:@"GOOG"
              forKey:@"symbol"];
    [stock setObject:[NSNumber numberWithInt:160]
              forKey:@"numberOfStocks"];
    [stocks addObject:stock];
    
    [stocks writeToFile:@"/tmp/stocks.plist"
             atomically:YES];
    
    NSArray *stockList = [NSArray arrayWithContentsOfFile:@"/tmp/stocks.plist"];
    
    for (NSDictionary *d in stockList) {
        NSLog(@"I have %@ shares of %@", [d objectForKey:@"numberOfShares"], [d objectForKey:@"symbol"]);
    }
}
return 0;

}[/code]
Does anybody see any issues?