<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>spkrln</author_name>
  <author_url>https://blog.hatena.ne.jp/spkrln/</author_url>
  <blog_title>LV1</blog_title>
  <blog_url>https://spkrln.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>auto reference counting(ARC)がオンだと&quot;retainCount&quot;メソッドが使えませんが、Core Foundationの関数で代用できるようです。 NSObject* obj = [[NSObject alloc] init]; NSLog(@&quot;%d&quot;, (int)CFGetRetainCount((__bridge CFTypeRef)obj)); ARC管理下のオブジェクトをそうでない型にキャストするために__bridgeキャストしています。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fspkrln.hatenablog.com%2Fentry%2F2012%2F06%2F19%2F004407&quot; title=&quot;ARC オンの時のretain count の確認方法 - LV1&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-06-19 00:44:07</published>
  <title>ARC オンの時のretain count の確認方法</title>
  <type>rich</type>
  <url>https://spkrln.hatenablog.com/entry/2012/06/19/004407</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
