Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne
Created November 19, 2014 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolfbjarne/f0d690b0e68c96039ddd to your computer and use it in GitHub Desktop.
Save rolfbjarne/f0d690b0e68c96039ddd to your computer and use it in GitHub Desktop.
diff --git a/src/XamarinProfiler.Mac/TraceDocument.cs b/src/XamarinProfiler.Mac/TraceDocument.cs
index 43eba2f..f7182e7 100644
--- a/src/XamarinProfiler.Mac/TraceDocument.cs
+++ b/src/XamarinProfiler.Mac/TraceDocument.cs
@@ -221,6 +221,7 @@ namespace XamarinProfiler.Mac
windowController.Window.DidBecomeKey += OnWindowReady;
}
+ static HashSet<NSObject> save = new HashSet<NSObject>();
public override void AwakeFromNib ()
{
base.AwakeFromNib ();
@@ -262,6 +263,7 @@ namespace XamarinProfiler.Mac
},
(splitView, indexer) => true
);
+ save.Add (MainSplitView.Delegate);
foreach (var subview in InstrumentSplitView.Subviews) {
subview.WantsLayer = true;
@@ -298,6 +300,7 @@ namespace XamarinProfiler.Mac
return true;
}
);
+ save.Add (InstrumentSplitView.Delegate);
ProcessSelectorButton.ProcessChanged += (sender, e) => {
ProcessSelectorButton.DisplayDeviceName = Environment.MachineName;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment