Created
May 28, 2012 22:18
-
-
Save jasongregori/2821444 to your computer and use it in GitHub Desktop.
weakself code snippet: my most used code snippet
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
__weak __typeof(&*self)weakself = self; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mike Ash showed me the
&*
trick. Without it, you get errors.