以下の内容はhttps://anton0825.hatenablog.com/entry/20130326/1366979107より取得しました。


NSWindowControllerまたはそのサブクラスをweak参照にしようとすると、cannot form weak reference to instanceエラーになる

weak参照にすることを禁止する方法があるらしく、禁止されているクラスのオブジェクトにWeak参照したら実行時エラーが出る。知らなかった。。
NSWindowControllerはWeak参照が禁止されているので、Weakの代わりにunsafe_unretainedを使う。


参考:http://takebayashi.asia/blog/2011/12/23/arc-weak-unavailable-classes




以上の内容はhttps://anton0825.hatenablog.com/entry/20130326/1366979107より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14