{"type":"rich","published":"2012-11-15 09:18:04","description":"\u6700\u8fd1\u306eObjective-C\u306fARC\u3068\u3044\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30dd\u30a4\u30f3\u30bf\u3092\u30b9\u30de\u30fc\u30c8\u30dd\u30a4\u30f3\u30bf\u306b\u3059\u308b\u6a5f\u80fd\u304c\u3042\u308a\u3001\u3053\u308c\u306e\u304a\u304b\u3052\u3067iPhone\u30a2\u30d7\u30ea\u306e\u958b\u767a\u3067\u306fRAII\u304c\u3067\u304d\u308b\u3002\u3064\u307e\u308a\u3001\u4e0d\u8981\u306b\u306a\u3063\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306f\u305d\u306e\u77ac\u9593\u306b\u30c7\u30b9\u30c8\u30e9\u30af\u30bf(-dealloc)\u304c\u547c\u3070\u308c\u308b\u305f\u3081\u3001\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u5185\u3067\u30ea\u30bd\u30fc\u30b9\u306e\u958b\u653e\u3092\u884c\u306a\u3048\u308b\u3002 // \u30c7\u30d0\u30a4\u30b9\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30a4\u30f3\u30b8\u30b1\u30fc\u30bf\u3092RAII\u3067\u5236\u5fa1\u3059\u308b @interface NetworkActivityGuard : NSObject @end @implementation NetworkActivityGuard - (id)init // \u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf { [[UIApplicati\u2026","author_url":"https://blog.hatena.ne.jp/gfx/","title":" RAII in Objective-C with ARC","version":"1.0","provider_name":"Hatena Blog","url":"https://gfx.hatenadiary.org/entry/20121115/1352938684","author_name":"gfx","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgfx.hatenadiary.org%2Fentry%2F20121115%2F1352938684\" title=\" RAII in Objective-C with ARC - Islands in the byte stream (legacy)\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":"https://images-fe.ssl-images-amazon.com/images/I/51PSFQtTJKL._SL160_.jpg","blog_url":"https://gfx.hatenadiary.org/","categories":[],"width":"100%","provider_url":"https://hatena.blog","blog_title":"Islands in the byte stream (legacy)"}