Drag&Drop to selected NSTextField?
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