Skip to content

Instantly share code, notes, and snippets.

@jasongregori
Created May 28, 2012 22:18
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasongregori/2821444 to your computer and use it in GitHub Desktop.
Save jasongregori/2821444 to your computer and use it in GitHub Desktop.
weakself code snippet: my most used code snippet
__weak __typeof(&*self)weakself = self;
@jasongregori
Copy link
Author

Mike Ash showed me the &* trick. Without it, you get errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment