From f792993d37563a441ce74904db1807dadc57088c Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 12 Sep 2019 20:03:15 -0400 Subject: [PATCH] Fix toolbar item auto-validation. Putting NSViews (or NSControls) in a toolbar item turns off automatic validation, per https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Toolbars/Tasks/ValidatingTBItems.html. --- English.lproj/Debugger.xib | 12 ++++++------ MacGDBp.xcodeproj/project.pbxproj | 6 ++++++ Source/ValidatingNSToolbarItem.h | 20 ++++++++++++++++++++ Source/ValidatingNSToolbarItem.m | 25 +++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 Source/ValidatingNSToolbarItem.h create mode 100644 Source/ValidatingNSToolbarItem.m diff --git a/English.lproj/Debugger.xib b/English.lproj/Debugger.xib index e9ced6f..b31a2cb 100644 --- a/English.lproj/Debugger.xib +++ b/English.lproj/Debugger.xib @@ -319,7 +319,7 @@ - +