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: James Walker via Cocoa-dev <email@hidden>
- Date: Tue, 30 Jun 2020 09:46:07 -0700
On 6/30/20 3:32 AM, Michael Kloske via Cocoa-dev wrote:
In my window controller, which implements <NSTokenFieldDelegate> I have the
following code:
- (BOOL)tokenField:(NSTokenField *)tokenField
writeRepresentedObjects:(NSArray *)objects
toPasteboard:(NSPasteboard *)pboard
{
return [pboard writeObjects:objects];
}
My code (working in Catalina) is
- (BOOL)tokenField:(NSTokenField *)tokenField
writeRepresentedObjects:(NSArray *)objects
toPasteboard:(NSPasteboard *)pboard
{
[pboard clearContents];
return [pboard writeObjects:objects];
}
_______________________________________________
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