Re: Text Views, Text Fields and dragging
Re: Text Views, Text Fields and dragging
- Subject: Re: Text Views, Text Fields and dragging
- From: Harilaos Skiadas <email@hidden>
- Date: Tue, 14 Sep 2004 12:14:15 -0700 (PDT)
--- Matt Neuburg <email@hidden> wrote:
> Like everything else with NSTextFields, drag and
> drop is tricky because if
> the NSTextField contains the insertion point (has
> the focus) in its window,
> it has a field editor, and now the field editor is
> in your way. My guess is
> that that's what's happening to you. The interplay
> between the field editor
> and the NSTextField during a drop is extraordinarily
> difficult to figure
> out. So my solution has always been just to give up
> - in the NSTextField's
> draggingEntered: I call [[self window]
> makeFirstResponder: nil] so there is
> no field editor. This might not be the same as the
> problem you're having,
> but it seems worth a go. m.
Sweet!! Did exactly what I wanted. Thanks a lot!!
On the other hand, what I came to realize is that I
should really be allowing the user to drop anywhere in
the window. Not sure how to handle that yet.
> --
> matt neuburg, phd = email@hidden,
> <http://www.tidbits.com/matt/>
> A fool + a tool + an autorelease pool = cool!
> AppleScript: the Definitive Guide
>
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
>
Haris
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden