discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Suggestion: Make drag-and-drop default in NSTextView


From: Yen-Ju Chen
Subject: Re: Suggestion: Make drag-and-drop default in NSTextView
Date: Tue, 13 Jul 2004 17:33:06 -0400




From: Fred Kiefer <fredkiefer@gmx.de>
To: Yen-Ju Chen <yjchenx@hotmail.com>
CC: discuss-gnustep@gnu.org
Subject: Re: Suggestion: Make drag-and-drop default in NSTextView
Date: Tue, 13 Jul 2004 20:48:48 +0200

Yen-Ju Chen wrote:



From: Alexander Malmberg <alexander@malmberg.org>
To: discuss-gnustep@gnu.org
Subject: Re: Suggestion: Make drag-and-drop default in NSTextView
Date: Sun, 11 Jul 2004 02:19:47 +0200

Yen-Ju Chen wrote:
> Sorry that now I realize that NSTextView does support drop by default.
> (Thanx help from Boibles@hotmail...).
> I use a custom NSTextView in Gorm.
> But I still need to register (ForDraggedTypes:) this custom NSTextView in
> order to receive drop action,

I think that's expected, at least according to the documentation. Is the
text view editable? Rich text? What types are you registering?


The text view is editable, non-rich, and register for NSStringPboardType. It works, but not expect to register. Not a big problem, just different from Cocoa.


Could you please explain some more, what you mean by this? Do you think that [updateDragTypeRegistration] should be called in the method [initWithFrame:textContainer:]? You may be right there, there seem to be some cases, where this call wont get done later on.

 Actually I don't know the internal implementation.
I just notice that if I add an NSTextView in Gorm, which automatically accept drag-and-drop.
 If I change this NSTextView into a subclass of NSTextView in Gorm,
it won't accept drag-and-drop unless I use registerForDraggedTypes: to register it.

 Yen-Ju

_________________________________________________________________
Get tips for maintaining your PC, notebook accessories and reviews in Technology 101. http://special.msn.com/tech/technology101.armx





reply via email to

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