Created
October 28, 2013 20:47
-
-
Save kgleeson/7204388 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 = @[@"name", @"steep", @"brew", @"position"]; | |
| for (CTTimer *item in coffeeTimers) { | |
| NSArray *values = @[[item title], [NSNumber numberWithInteger:[item steepTime]], [NSNumber numberWithInteger:[item brewTime]], [item listPosition]]; | |
| NSMutableDictionary *timerDict = [NSMutableDictionary dictionaryWithObjects:values | |
| forKeys:keys]; | |
| [timersDict setValue:timerDict | |
| forKey:[NSString stringWithFormat:@"%@", [item listPosition]]]; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment