Re: Custom NSCollectionViewLayout isn't causing scrollbars to appear
Re: Custom NSCollectionViewLayout isn't causing scrollbars to appear
- Subject: Re: Custom NSCollectionViewLayout isn't causing scrollbars to appear
- From: Steve Mills <email@hidden>
- Date: Wed, 28 Dec 2016 22:17:35 -0600
On Dec 28, 2016, at 20:26:52, Rob Petrovec <email@hidden> wrote:
>
> You need to specify the scroll direction via -scrollDirection and return an NSSize large enough for a scroll bar from -collectionViewContentSize. Hope that helps.
-scrollDirection is a method only available for NSCollectionViewFlowLayout. I said I'm using a custom layout class, which is a subclass of NSCollectionViewLayout. I also don't believe the size returned from -collectionViewContentSize should include space for scrollbars. The docs say "size of the contents". Scrollbars are not content.
--
Steve Mills
Drummer, Mac geek
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden