Fix compatibility issues when linking against Sonoma's SDK. Fixes #633

This commit is contained in:
Lior Halphon 2024-06-09 15:27:28 +03:00
parent b2d1086e2e
commit 0b77662504
4 changed files with 12 additions and 28 deletions

View File

@ -1,15 +0,0 @@
//
// HFHexTextView.h
// HexFiend_2
//
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface HFHexTextView : NSTextView {
}
@end

View File

@ -1,13 +0,0 @@
//
// HFHexTextView.m
// HexFiend_2
//
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import "HFHexTextView.h"
@implementation HFHexTextView
@end

View File

@ -672,4 +672,10 @@ static inline int common_prefix_length(const char *a, const char *b) {
}
}
/* Compatibility with Sonoma */
+ (bool)clipsToBounds
{
return true;
}
@end

View File

@ -1761,4 +1761,10 @@ static size_t unionAndCleanLists(NSRect *rectList, id *valueList, size_t count)
else return YES;
}
/* Compatibility with Sonoma */
+ (bool)clipsToBounds
{
return true;
}
@end