What is behind PB_Gadget_SetOpenFinderFiles()?

Mac OSX specific forum
User avatar
Kukulkan
Addict
Addict
Posts: 1352
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

What is behind PB_Gadget_SetOpenFinderFiles()?

Post by Kukulkan »

Hi,

you maybe know the PB_Gadget_SetOpenFinderFiles() function used to get MacOS Cocoa events for files to be opened by your application.

Is there someone who can tell me what is behind? What Cocoa methods to call to get such result by myself?

I'm also interested in the Cocoa details about how to get notified if a user clicks on the Dock icon of my program.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3870
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: What is behind PB_Gadget_SetOpenFinderFiles()?

Post by wilbert »

Kukulkan wrote:you maybe know the PB_Gadget_SetOpenFinderFiles() function used to get MacOS Cocoa events for files to be opened by your application.

Is there someone who can tell me what is behind? What Cocoa methods to call to get such result by myself?
If I remember correctly, what's behind it is the application:openFiles: method of NSApplicationDelegate .
Unfortunately you can't get the result yourself because by the time you can set a delegate using CocoaMessage, the method already has been called.
Windows (x64)
Raspberry Pi OS (Arm64)
Post Reply