• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Text Views, Text Fields and dragging
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Text Views, Text Fields and dragging (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: XCode Unknown class
  • Next by Date: Re: controlTextDidChange, backspace possible?
  • Previous by thread: Re: Text Views, Text Fields and dragging
  • Next by thread: Equivalent to NSLocalizedStringFromTable() for working with a XML?
  • Index(es):
    • Date
    • Thread