Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *path = [@"~/Library/Application Support/RavenApp/app.plist" stringByExpandingTildeInPath];
- NSDictionary *dict = [NSMutableDictionary dictionaryWithContentsOfFile:path];
- NSArray *folders = [[dict objectForKey:@"app"] mutableCopy];
- int count = [folders count];
- int x;
- for (x=0; x<count; x++) {
- NSDictionary *item = [folders objectAtIndex:i];
- NSArray *URL = [[item objectForKey:@"URL"]mutableCopy];
- RASmartBarViewController *testController = [[RASmartBarViewController alloc]init];
- testController.folderName = [item objectForKey:@"foldername"];
- testController.firstURL = [URL objectAtIndex:0];
- testController.secondURL = [URL objectAtIndex:1];
- testController.thirdURL = [URL objectAtIndex:2];
- testController.fourthURL = [URL objectAtIndex:3];
- [appList addObject:testController];
- [[appList objectAtIndex:x]view];
- [rightView addSubview:[[appList objectAtIndex:x]view]];
- [URL release];
- [testController release];
- }
- [folders release];
Add Comment
Please, Sign In to add comment