Fix OVERIDDEN macro, override method in NSCollectionViewGridLayout

This commit is contained in:
Gregory John Casamento 2023-02-09 14:39:37 -05:00
parent fd4b07ff09
commit 731f5a248d
2 changed files with 6 additions and 1 deletions

View file

@ -69,7 +69,7 @@ APPKIT_DECLARE NSCollectionViewSupplementaryElementKind GSNoSupplementaryElement
* Private helper macro to check, if the method given via the selector sel
* has been overridden in the current subclass.
*/
#define OVERRIDDEN(sel) ([_collectionViewLayout methodForSelector: @selector(sel)] != [[_collectionViewLayout class] instanceMethodForSelector: @selector(sel)])
#define OVERRIDDEN(sel) ([_collectionViewLayout methodForSelector: @selector(sel)] != [[NSCollectionViewLayout class] instanceMethodForSelector: @selector(sel)])
/*
* Class variables

View file

@ -263,4 +263,9 @@
return attrs;
}
- (NSSize) collectionViewContentSize
{
return [_collectionView frame].size;
}
@end