• 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
Drag&Drop to selected NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Drag&Drop to selected NSTextField?


  • Subject: Drag&Drop to selected NSTextField?
  • From: Jonas Witt <email@hidden>
  • Date: Sat, 19 Nov 2005 15:01:42 +0100

Hello List,

I'm trying to make a text field to specify a folder. In addition to a 'choose...' button beside it I'd also like the field to be a destination for drag&drop. I therefore subclassed NSTextField and implemented NSDraggingDestination. Now dragging works, BUT: If the text field is the first responder before dragging a folder on it, I get this vertical bar insertion indicator like when I insert text and the path of the folder gets inserted in the text field where my cursor was _without_ replacing the old text. Dragging works perfectly on non-selected text fields. But if the text field is selected, my custom performDragOperation: method doesn't even get called (but draggingEntered: and draggingUpdated: do - why?).

How can I prevent this behavior?

Much thanks,

Jonas

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Prev by Date: Re: or Using NSImage... [was: Re: Using NSBundle]
  • Next by Date: Re: Automagic instantiation of singletons? (Christian Brunschen)
  • Previous by thread: Re: The best way to learn about low level Thread
  • Next by thread: Embedding custom attachment cell in a NSTextView
  • Index(es):
    • Date
    • Thread