<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>see_ku</author_name>
  <author_url>https://blog.hatena.ne.jp/see_ku/</author_url>
  <blog_title>開発メモ</blog_title>
  <blog_url>https://seeku.hateblo.jp/</blog_url>
  <categories>
    <anon>Objective-C</anon>
    <anon>OS X</anon>
  </categories>
  <description>NSImageViewは何の設定もしなくても、イメージファイルのドロップを受け付けてくれます。この動作が便利なことも無いとは言いませんが、どっちかというと邪魔です。では、この動作を止めるにはどうすればいいのでしょうか？ 動作を確認した環境 環境 情報 OS X 10.9.2 Xcode 5.1 Date 2014/03/31 方法 対象となるNSImageViewに対して、ドロップを受け付ける設定を無理やり解除します。具体的にはこんな感じ。 [_imageView unregisterDraggedTypes]; 簡単だね。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseeku.hateblo.jp%2Fentry%2F2014%2F04%2F03%2F200143&quot; title=&quot;NSImageViewがファイルのドロップを受け付けるのを止める方法 - 開発メモ&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>2014-04-03 20:01:43</published>
  <title>NSImageViewがファイルのドロップを受け付けるのを止める方法</title>
  <type>rich</type>
  <url>https://seeku.hateblo.jp/entry/2014/04/03/200143</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
