Minor updates and formatting change

This commit is contained in:
Gregory John Casamento 2022-07-16 07:56:13 -04:00
parent 466ebedd04
commit b28eaac9eb
2 changed files with 9 additions and 14 deletions

View file

@ -66,24 +66,24 @@ NSCollectionViewSupplementaryElementKind const NSCollectionElementKindSectionFoo
sizeForItemAtIndexPath:(NSIndexPath *)indexPath;
- (NSEdgeInsets)collectionView: (NSCollectionView *)collectionView
layout: (NSCollectionViewLayout*)collectionViewLayout
layout: (NSCollectionViewLayout *)collectionViewLayout
insetForSectionAtIndex: (NSInteger)section;
- (CGFloat) collectionView: (NSCollectionView *)collectionView
layout: (NSCollectionViewLayout*)collectionViewLayout
layout: (NSCollectionViewLayout *)collectionViewLayout
minimumLineSpacingForSectionAtIndex: (NSInteger)section;
- (CGFloat) collectionView: (NSCollectionView *)collectionView
layout: (NSCollectionViewLayout*)collectionViewLayout
layout: (NSCollectionViewLayout *)collectionViewLayout
minimumInteritemSpacingForSectionAtIndex: (NSInteger)section;
- (NSSize) collectionView: (NSCollectionView *)collectionView
layout: (NSCollectionViewLayout*)collectionViewLayout
layout: (NSCollectionViewLayout *)collectionViewLayout
referenceSizeForHeaderInSection: (NSInteger)section;
- (NSSize) collectionView: (NSCollectionView *)collectionView
layout: (NSCollectionViewLayout*)collectionViewLayout
referenceSizeForFooterInSection:(NSInteger)section;
layout: (NSCollectionViewLayout *)collectionViewLayout
referenceSizeForFooterInSection: (NSInteger)section;
@end

View file

@ -425,24 +425,19 @@
mis = [self minimumInteritemSpacing];
}
// Do calculations...
// Calculations...
h = sz.height;
w = sz.width;
x = (r * w) + si.left + mis;
y = (s * h) + si.top + mls;
f = NSMakeRect(x, y, h, w);
// NSLog(@"Flow layout for index path = %@", indexPath);
// Build attrs object...
[attrs setFrame: f];
[attrs setHidden: NO];
[attrs setZIndex: 0];
[attrs setSize: sz];
// NSLog(@"f = %@", NSStringFromRect(f));
// NSLog(@"s = %@", NSStringFromSize(sz));
// NSLog(@"self = %@", self);
AUTORELEASE(attrs);
return attrs;
@ -450,7 +445,7 @@
- (NSCollectionViewLayoutAttributes *)
layoutAttributesForSupplementaryViewOfKind: (NSCollectionViewSupplementaryElementKind)elementKind
atIndexPath: (NSIndexPath *)indexPath
atIndexPath: (NSIndexPath *)indexPath
{
return nil;
}