For NSTexrField I have always created a subclass for my textfields

I call -registerForDraggedTypes: in -awakeFromNib in the subclass

And then to accept the drag implement the method in the sublclass

    -(NSDragOperation)draggingEntered:(id)sender

If there’s an easier or better it’d be cool to learn about it

Sandor

> On Jul 31, 2020, at 19:29, Carl Hoefs via Cocoa-dev 
> <[email protected]> wrote:
> 
> Why is drag-and-drop onto an NSTextField enabled only when it has focus? 
> 
> Is there any way around this?
> 
> -Carl
> 
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/cocoa-dev/admin.szatmari.net%40gmail.com
> 
> This email sent to [email protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to