#import "PopUpBindings2AppDelegate.h"
@implementation PopUpBindings2AppDelegate
@synthesize window; @synthesize dataArray;
- (id)init { self = [super init]; if (self == nil) return nil; dataArray = [NSMutableArray arrayWithCapacity:5]; mD1 = [NSMutableDictionary dictionaryWithCapacity:3]; [mD1 setObject:[NSArray arrayWithObjects:@"A",@"B",nil] forKey:@"items"]; [mD1 setObject:@"X" forKey:@"name"]; [mD1 setObject:@"A" forKey:@"selectedItem"]; [dataArray addObject:mD1]; mD2 = [NSMutableDictionary dictionaryWithCapacity:3]; [mD2 setObject:[NSArray arrayWithObjects:@"C",@"D",nil] forKey:@"items"]; [mD2 setObject:@"Y" forKey:@"name"]; [mD2 setObject:@"C" forKey:@"selectedItem"]; [dataArray addObject:mD2];
NSLog(@"dataArray %@", dataArray); return self; }
@end |