<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kimuraw</author_name>
  <author_url>https://blog.hatena.ne.jp/kimuraw/</author_url>
  <blog_title>きりかノート 3冊め</blog_title>
  <blog_url>https://kimuraw.hatenadiary.jp/</blog_url>
  <categories>
    <anon>cocoa</anon>
  </categories>
  <description>小ネタ。勉強会の@YES, @NOの件のついでに、たとえばNSNumberが0, 1, 2とかの値のときってどうなんだろ？と思ったので試してみた。RubyCocoaではObject#to_nsというメソッドがあって、変換可能ならてきとうにCocoaのオブジェクトを返すという機能があるので、これを使ってみよう。FixnumまたはBignumだと-[NSNumber numberWithLongLong:]を使ってNSNumberを返すはず。 % irb -rosx/cocoa --simple-prompt &gt;&gt; 0.to_ns.retainCount =&gt; 922337203685477580…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkimuraw.hatenadiary.jp%2Fentry%2F20130325%2Fp1&quot; title=&quot; NSNumberが即値っぽい動きをしてる - きりかノート 3冊め&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>2013-03-25 00:00:00</published>
  <title> NSNumberが即値っぽい動きをしてる</title>
  <type>rich</type>
  <url>https://kimuraw.hatenadiary.jp/entry/20130325/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
