Skip to content

Instantly share code, notes, and snippets.

@bdittmer
Created February 6, 2013 21:54
Show Gist options
  • Save bdittmer/4726229 to your computer and use it in GitHub Desktop.
Save bdittmer/4726229 to your computer and use it in GitHub Desktop.
static NSDictionary *valueMap = @{giIdKey:@"_groupIncentiveId", giJobIdKey:@"_jobId", giPercentCompleteKey:@"_percentComplete",
giPercentReservedKey:@"_percentReserved", giGoalsKey:@"_goals", giRewardsKey:@"_rewards"};
for (NSString *key in valueMap) {
[gi setValue:[d objectForKey:key] forKey:valueMap[key]];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment