I watched the video Build an AppKit app with the new design and followed the discussion about how to have a button avoid a window corner. However, the code is in Swift and my codebase is still heavily written in objective-c. I've searched NSView.h but can't find anything new related to safe areas and corners. How are we supposed to avoid corners using objective-c?
I ended up grepping for 26
in the appkit headers and found in NSViewLayoutRegion.h
+ (NSViewLayoutRegion *)safeAreaLayoutRegionWithCornerAdaptation:(NSViewLayoutRegionAdaptivityAxis)adaptivityAxis;
+ (NSViewLayoutRegion *)marginsLayoutRegionWithCornerAdaptation:(NSViewLayoutRegionAdaptivityAxis)adaptivityAxis;
This new header file was not mentioned in the macOS 26 release notes.