From fd68ee23c752911bafe56f137ea51640d36cff83 Mon Sep 17 00:00:00 2001 From: ckegel <57967583+CKegel@users.noreply.github.com> Date: Thu, 20 Apr 2023 21:18:12 -0400 Subject: [PATCH] Implement NSUserInterfaceItemIdentifcation protocol --- AppKit/NSView.m | 6 +++--- AppKit/include/AppKit/NSView.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/AppKit/NSView.m b/AppKit/NSView.m index de8b1967..9d2d3bc2 100644 --- a/AppKit/NSView.m +++ b/AppKit/NSView.m @@ -888,7 +888,7 @@ static inline void buildTransformsIfNeeded(NSView *self) { } - (BOOL) translatesAutoresizingMaskIntoConstraints { - return _translatesAutoresizingMaskIntoConstraints; + return _translatesAutoresizingMaskIntoConstraints; } - viewWithTag: (NSInteger) tag { @@ -1131,8 +1131,8 @@ static inline void buildTransformsIfNeeded(NSView *self) { } - (void) settranslatesAutoresizingMaskIntoConstraints: (BOOL) value { - _translatesAutoresizingMaskIntoConstraints = value; - NSUnimplementedMethod(); + _translatesAutoresizingMaskIntoConstraints = value; + NSUnimplementedMethod(); } - (void) setPostsFrameChangedNotifications: (BOOL) flag { diff --git a/AppKit/include/AppKit/NSView.h b/AppKit/include/AppKit/NSView.h index 1cac743c..1dba742b 100644 --- a/AppKit/include/AppKit/NSView.h +++ b/AppKit/include/AppKit/NSView.h @@ -24,6 +24,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #import #import #import +#import #import #import #import