Skip to content
Browse files

adding a note about the dictionary mapping being extremely experimental

  • Loading branch information...
1 parent 096933f commit f3311c2e4962789eb09b3f495cd8b6023d235db2 @Machx committed
Showing with 5 additions and 4 deletions.
  1. +1 −1 Info.plist
  2. +1 −1 Source/CWDictionaryTests.m
  3. +3 −2 Source/NSDictionaryAdditions.m
View
2 Info.plist
@@ -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>
View
2 Source/CWDictionaryTests.m
@@ -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) {
//
}];
View
5 Source/NSDictionaryAdditions.m
@@ -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) {

0 comments on commit f3311c2

Please sign in to comment.
Something went wrong with that request. Please try again.