bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView bug?


From: Ludovic Marcotte
Subject: NSTextView bug?
Date: Thu, 18 Oct 2001 13:35:10 -0400 (EDT)

Hi,

In NSTextView: -mouseDown we have:

if (_tf.imports_graphics == YES)
 {
   NSTextAttachment *attachment;
   ...
 }

This is for letting the delegate takes mouse clicks on the cell
representing a NSTextAttachment object.

If imports_graphics == YES, it means that the text view *accept* dragged
files. I don't think this is related to NSTextAttachements (the API is not
clear on that).

I think the method above should look like:

if ( [_textStorage containsAttachments] )
    {
      NSTextAttachment *attachment;
    ..
    } 

I think somebody should verify this on OPENSTEP or under MacOS-X.

Ludo

-- 
Live as if you were to die tomorrow.
Learn as if you were to live forever.
 - Gandhi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]