Created
October 28, 2013 17:01
-
-
Save kgleeson/7200594 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(void) createDictionaryFromTimers { | |
| timersDict = [[NSMutableDictionary alloc] init]; | |
| NSArray *keys = [NSArray arrayWithObjects:@"name", | |
| @"steep", | |
| @"brew", | |
| nil]; | |
| for (id item in coffeeTimers) { | |
| NSArray *values = [NSArray arrayWithObjects:[item title], | |
| [item steepTime], | |
| [item brewTime], | |
| nil]; | |
| NSMutableDictionary *timerDict = [NSMutableDictionary dictionaryWithObjects:values | |
| forKeys:keys]; | |
| [timersDict setValue:timerDict | |
| forKey:[NSString stringWithFormat:@"%@", [item title]]]; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment