[MacPorts] #60646: app portgroup -- accept drag-and-dropped files from the Finder

MacPorts noreply at macports.org
Sun Jun 14 10:43:42 UTC 2020


#60646: app portgroup -- accept drag-and-dropped files from the Finder
--------------------------+--------------------
  Reporter:  kencu        |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------

Comment (by ryandesign):

 Dragging a file onto an app does not cause macOS to pass that file to the
 app executable as a command line argument. Instead, the app must implement
 the
 [https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428612-application
 application:openFile:] and
 [https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428742-application
 application:openFiles:] methods of the NSApplicationDelegate class;
 NSApplication will call those delegate methods with information about the
 files. It seems beyond the scope of a portgroup to potentially implement
 an entire NSApplication-based wrapper for the program to provide this
 functionality.

-- 
Ticket URL: <https://trac.macports.org/ticket/60646#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list