Re: Drag and Drop of NSTokenField stopped working in Catalina
Re: Drag and Drop of NSTokenField stopped working in Catalina
- Subject: Re: Drag and Drop of NSTokenField stopped working in Catalina
- From: Michael Kloske via Cocoa-dev <email@hidden>
- Date: Tue, 30 Jun 2020 13:57:22 +0200
>> in my application I have several NSTokenField - objects that are used to
>> drag them into a text field to build up a string by some tokens.
>> However, since Catalina dragging of those NSTokenField - objects does not
>> work anymore.
>> In Xcode I get the following message:
>>
>> "<NSTokenAttachmentCell: 0x6000021fdd10>: There was an exception (There are
>> 2 items on the pasteboard, but 1 drag images. There must be 1 draggingItem
>> per pasteboardItem.) raised while processing drag. Ignoring…”
>
>
> The NSTokenField is used in the Mail application in the address field. Using
> the Mail app in Catalina, drag a token from the address field to a TextEdit
> document. Does that work?
>
> I would try it but my primary development machine is macOS Sierra.
>
This works pretty well. If writableTypesForPasteboard returns just nil, it
would also work in my application but then I would miss my internal data.
—Michael Kloske
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden