{"action":"created","issue":{"url":"https://api.github.com/repos/jspahrsummers/libextobjc/issues/45","repository_url":"https://api.github.com/repos/jspahrsummers/libextobjc","labels_url":"https://api.github.com/repos/jspahrsummers/libextobjc/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/jspahrsummers/libextobjc/issues/45/comments","events_url":"https://api.github.com/repos/jspahrsummers/libextobjc/issues/45/events","html_url":"https://github.com/jspahrsummers/libextobjc/issues/45","id":18547643,"number":45,"title":"@weakify/@strongify in nested blocks","user":{"login":"itsthejb","id":557391,"avatar_url":"https://avatars0.githubusercontent.com/u/557391?v=4","gravatar_id":"","url":"https://api.github.com/users/itsthejb","html_url":"https://github.com/itsthejb","followers_url":"https://api.github.com/users/itsthejb/followers","following_url":"https://api.github.com/users/itsthejb/following{/other_user}","gists_url":"https://api.github.com/users/itsthejb/gists{/gist_id}","starred_url":"https://api.github.com/users/itsthejb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itsthejb/subscriptions","organizations_url":"https://api.github.com/users/itsthejb/orgs","repos_url":"https://api.github.com/users/itsthejb/repos","events_url":"https://api.github.com/users/itsthejb/events{/privacy}","received_events_url":"https://api.github.com/users/itsthejb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2013-08-26T13:04:27Z","updated_at":"2018-03-29T15:54:26Z","closed_at":"2013-08-27T16:06:52Z","author_association":"NONE","body":"Hi,\n\nI have been looking through the library documentation in order to find some guidance on how to use `@weakify` and `@strongify` in nested blocks, but cannot find any. For example, which is correct?\n\n**1. `@weakify` once and subsequently `@strongify` in blocks**\n\n```\n- (void) test {\n      @weakify(self)\n      id block = ^{\n        @strongify(self);\n        [self doSomething];\n        nestedBlock = ^{\n          @strongify(self);\n          [self doSomethingElse];\n        }();\n      };\n      block();\n}\n```\n\n**2. Alternate `@weakify`/`@strongify`**\n\n```\n- (void) test {\n      @weakify(self)\n      id block = ^{\n        @strongify(self);\n        [self doSomething];\n        @weakify(self)         // @weakify again before the nested block?\n        nestedBlock = ^{\n          @strongify(self);\n          [self doSomethingElse];\n        }();\n      };\n      block();\n}\n```\n\nWould be great to get some guidance on what is appropriate here.\n\nMany thanks,\n\nJ\n"},"comment":{"url":"https://api.github.com/repos/jspahrsummers/libextobjc/issues/comments/377281891","html_url":"https://github.com/jspahrsummers/libextobjc/issues/45#issuecomment-377281891","issue_url":"https://api.github.com/repos/jspahrsummers/libextobjc/issues/45","id":377281891,"user":{"login":"k06a","id":702124,"avatar_url":"https://avatars0.githubusercontent.com/u/702124?v=4","gravatar_id":"","url":"https://api.github.com/users/k06a","html_url":"https://github.com/k06a","followers_url":"https://api.github.com/users/k06a/followers","following_url":"https://api.github.com/users/k06a/following{/other_user}","gists_url":"https://api.github.com/users/k06a/gists{/gist_id}","starred_url":"https://api.github.com/users/k06a/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k06a/subscriptions","organizations_url":"https://api.github.com/users/k06a/orgs","repos_url":"https://api.github.com/users/k06a/repos","events_url":"https://api.github.com/users/k06a/events{/privacy}","received_events_url":"https://api.github.com/users/k06a/received_events","type":"User","site_admin":false},"created_at":"2018-03-29T15:54:26Z","updated_at":"2018-03-29T15:54:26Z","author_association":"CONTRIBUTOR","body":"And don’t need `@strongify` In animation block."}}
{"actor":{"display_login":"k06a"}}