[Mono-osx] [Mono-list] How do you use mkbundle2 for Mac OS X successfully?
Michael Hutchinson
m.j.hutchinson at gmail.com
Fri Feb 19 13:35:32 EST 2010
On Fri, Feb 19, 2010 at 11:56 AM, Alex Shulgin
<alexander.shulgin at yessoftware.com> wrote:
>> b. Do you have an more info on how to "handle shutdown Apple Event
>> manually (see AEInstallEventHandler(), kAEQuitApplication).
>
> You'll need to P/Invoke the above Apple system call and provide a
> handler function in your C# code. When user logs out or mac is
> shutdown, your method will be called and will have a chance to
> gracefully close the application or prevent system from shutting down
> (e.g. ask user to save changes in document).
>
> This might be of some help:
> http://www.google.com/codesearch?hl=en&lr=&q=AEInstallEventHandler+lang:c%23&sbtn=Search
Or this: http://mjhutchinson.com/journal/2010/01/25/integrating_gtk_application_mac
(The ApplicationEvents stuff should work with Winforms as well as GTK#)
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Mono-osx
mailing list