Skip to content

Commit

Permalink
adding a note about the dictionary mapping being extremely experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
Machx committed Dec 2, 2010
1 parent 096933f commit f3311c2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Info.plist
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>com.yourcompany.${PRODUCT_NAME:rfc1034Identifier}</string>
<string>com.ColinWheeler.${PRODUCT_NAME:rfc1034Identifier}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
2 changes: 1 addition & 1 deletion Source/CWDictionaryTests.m
Expand Up @@ -26,7 +26,7 @@ -(void)testDictionaryMapping
{
NSDictionary *dictionary = [NSDictionary dictionaryWithObjectsAndKeys:@"foo",@"bar",nil];

NSDictionary *d2 = [dictionary cw_mapDictionary:^(id *value, id *key) {
NSDictionary *d2 = [dictionary cw_mapDictionary:^(id *key,id *value) {
//
}];

Expand Down
5 changes: 3 additions & 2 deletions Source/NSDictionaryAdditions.m
Expand Up @@ -36,13 +36,14 @@ -(BOOL)cw_dictionaryContainsKey:(NSString *)key

/**
Dictionary Mapping
THIS IS VERY EXPERIMENTAL AND IS NOT 100% WORKING AS I WOULD LIKE
*/
-(NSDictionary *)cw_mapDictionary:(void (^)(id *key, id *value))block
{
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];

__block id _intKey;
__block id _intValue;
id _intKey;
id _intValue;

for (id key in self.allKeys) {

Expand Down

0 comments on commit f3311c2

Please sign in to comment.