Skip to content

Instantly share code, notes, and snippets.

@thruflo
Created May 13, 2010 11:49
Show Gist options
  • Select an option

  • Save thruflo/399743 to your computer and use it in GitHub Desktop.

Select an option

Save thruflo/399743 to your computer and use it in GitHub Desktop.
for(id key in [searchControlsDict allKeys]) {
if([key isEqual:@"Active months"]) {
NSLog(@"Y");
}
else {
NSMutableDictionary *context = [searchControlsDict objectForKey:key];
// NSMutableArray *values = [[context objectForKey:VALUES] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)];
// [context removeObjectForKey:VALUES];
// [context setObject:values forKey:VALUES];
// [searchControlsDict removeObjectForKey:key];
[searchControlsDict setObject:context forKey:key];
}
}
NSLog(@"%d", searchControlsDict);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment