You want to filter the keys of the dictionary based on a test of the associated values. Use keysOfEntriesPassingTest:
to do this. You write the test to check the value of shortcut
.
Aside:
In this line:
[[NSDictionary dictionaryWithDictionary:senderDictionary] valueForKey:@"Antenne Bayern"];
the [NSDictionary dictionaryWithDictionary:senderDictionary]
should be replaced simply by senderDictionary
because creating a new dictionary that will be destroyed again almost immediately is pointless.