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



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.

Regards,
John Ralls





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