title: NSTextView determine if NSTextAttachment is present
body: <p>in my MyDocument class I need to determine if there is an image in my NSTextView, so I can prevent users from saving documents as RTF although RTF doesn't support images.</p>
  
  <p>Could someone point me in the right direction? </p>