Created
November 28, 2012 12:58
-
-
Save th-in-gs/4161072 to your computer and use it in GitHub Desktop.
Response to "Surprising ARC performance characteristics" (http://blog.securemacprogramming.com/?p=668)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[myDictionary enumerateKeysAndObjectsUsingBlock: ^(id key, id object, BOOL *stop) { | |
//... | |
}]; | |
to: | |
for(id key in myDictionary) { | |
id object = myDictionary[key]; | |
//... | |
} | |
or even: | |
for(__unsafe_unretained id key in myDictionary) { | |
__unsafe_unretained id object = myDictionary[key]; | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment