reports icon indicating copy to clipboard operation
reports copied to clipboard

FB9860228: NSWorkspace.shared.urlsForApplications(toOpen:) needs a role parameter to be able to replace the deprecated LSCopyApplicationURLsForURL function

Open sindresorhus opened this issue 3 years ago • 1 comments

  • Date: 2022-01-27
  • Resolution: Open
  • Area: AppKit
  • OS: macOS 12.2
  • Type: Incorrect/Unexpected Behavior

Description

For example, I want to make a picker that only shows apps that are “editor” for a UTType. NSWorkspace.shared.urlsForApplications(toOpen:) cannot currently do this. Something similar to LSRolesMask.

sindresorhus avatar Jan 27 '22 09:01 sindresorhus

Agree. Years passed and Apple didn't make any improvement.

phaibin avatar Oct 10 '24 03:10 phaibin