示例#1
0
 public override void WillTerminate(NSNotification notification)
 {
     BookmarkManager.SaveBookmarks();
     // Relaunch ourselves if it was requested
     if (RestartRequested)
     {
         NSWorkspace.SharedWorkspace.LaunchApp(NSBundle.MainBundle.BundleIdentifier,
                                               NSWorkspaceLaunchOptions.NewInstance | NSWorkspaceLaunchOptions.Async,
                                               NSAppleEventDescriptor.NullDescriptor,
                                               IntPtr.Zero);
     }
 }
 public override void WillTerminate(NSNotification notification)
 {
     BookmarkManager.SaveBookmarks();
 }