From 1df3e6e4584b84132826a82ef3e3d886c04759f4 Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Tue, 11 Aug 2020 18:54:00 -0400 Subject: [PATCH] Fix ButtonMadness and MicroSamples/pdf samples Fixes: https://github.com/xamarin/mac-samples/issues/132 ButtonMadness had a casing related typo in its `HfsTypeCode` enum usage. MicroSamples/pdf does not contain any app icon or other Assets.xcassets content, so the invalid elements have been removed. --- ButtonMadness/TestWindowController.cs | 6 +++--- MicroSamples/pdf/pdf.csproj | 14 -------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/ButtonMadness/TestWindowController.cs b/ButtonMadness/TestWindowController.cs index 1199788f..1b067556 100644 --- a/ButtonMadness/TestWindowController.cs +++ b/ButtonMadness/TestWindowController.cs @@ -158,17 +158,17 @@ public override void AwakeFromNib () nibBasedSegControl.SetMenu (buttonMenu, 0); // add icons to each segment (applied to both nib-based and code-based) - NSImage segmentIcon1 = NSWorkspace.SharedWorkspace.IconForFileType(HFSTypeCode.ComputerIcon); + NSImage segmentIcon1 = NSWorkspace.SharedWorkspace.IconForFileType (HfsTypeCode.ComputerIcon); segmentIcon1.Size = new CGSize(16, 16); nibBasedSegControl.SetImage (segmentIcon1, 0); codeBasedSegmentControl.SetImage (segmentIcon1, 0); - NSImage segmentIcon2 = NSWorkspace.SharedWorkspace.IconForFileType (HFSTypeCode.DesktopIcon); + NSImage segmentIcon2 = NSWorkspace.SharedWorkspace.IconForFileType (HfsTypeCode.DesktopIcon); segmentIcon2.Size = new CGSize (16, 16); nibBasedSegControl.SetImage (segmentIcon2, 1); codeBasedSegmentControl.SetImage (segmentIcon2, 1); - NSImage segmentIcon3 = NSWorkspace.SharedWorkspace.IconForFileType (HFSTypeCode.FinderIcon); + NSImage segmentIcon3 = NSWorkspace.SharedWorkspace.IconForFileType (HfsTypeCode.FinderIcon); segmentIcon3.Size = new CGSize (16, 16); nibBasedSegControl.SetImage (segmentIcon3, 2); codeBasedSegmentControl.SetImage (segmentIcon3, 2); diff --git a/MicroSamples/pdf/pdf.csproj b/MicroSamples/pdf/pdf.csproj index 7ea1863b..e77e24b5 100644 --- a/MicroSamples/pdf/pdf.csproj +++ b/MicroSamples/pdf/pdf.csproj @@ -47,20 +47,6 @@ - - - - - - - - - - - - - -