<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anton0825</author_name>
  <author_url>https://blog.hatena.ne.jp/anton0825/</author_url>
  <blog_title>日々精進</blog_title>
  <blog_url>https://anton0825.hatenablog.com/</blog_url>
  <categories>
    <anon>mac</anon>
  </categories>
  <description>weak参照ができないクラスがいくつかあるというのは知ってたけど、 OSのバージョンで挙動が違うとは。。 NSWindow・NSWindowControllerにweak参照をするとLionではアプリが落ちるがMountain Lionでは落ちない。 解決策はweakをunsafe_unretainedにしてdealloc時にちゃんとnilを代入すること。 参考：http://takebayashi.asia/blog/2011/12/23/arc-weak-unavailable-classes</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F20130727%2F1380275535&quot; title=&quot;OS X Lion(10.7)でNSWindow・NSWindowControllerにweak参照をすると落ちる - 日々精進&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-07-27 18:52:15</published>
  <title>OS X Lion(10.7)でNSWindow・NSWindowControllerにweak参照をすると落ちる</title>
  <type>rich</type>
  <url>https://anton0825.hatenablog.com/entry/20130727/1380275535</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
