Re: [Gtk-osx-users] how does "NSApplicationOpenFile" work?



2011/2/11 John Ralls <jralls ceridwen us>:
>
> On Feb 11, 2011, at 4:22 AM, Olivier Sessink wrote:
>
>> Hi all,
>>
>> I'm playing with the "NSApplicationOpenFile" signal. However, if I try
>> to open a file form the finder right now a new process is started by
>> the finder, but the signal is not trigerred. Is there a piece of
>> example code somewhere that shows how this signal works?
>
> If I remember correctly, the Delegate doesn't get set up quickly enough for the signal to be emitted if the app is opened by launchd on the File Open Apple Event, so the open event is handled only when the app is already active.

even if the app is running I get a new process starting, and with that
new process it seems that the finder doesn't pass any file name as
arguments.... I don't know how this is supposed to work on a mac, so
perhaps I'm looking at the wrong thing.

Olivier




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]