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: Rob Petrovec <email@hidden>
- Date: Wed, 28 Dec 2016 19:26:52 -0700
You need to specify the scroll direction via -scrollDirection and return an NSSize large enough for a scroll bar from -collectionViewContentSize. Hope that helps.
—Rob
> On Dec 23, 2016, at 11:23 AM, Steve Mills <email@hidden> wrote:
>
> I'm using a custom layout subclass because I want a specific number of columns at a specific size, which should cause the scroll view's horizontal scrollbar to appear, but it's not. What do I have to do to make it appear? The checkbox for both scrollbars is turned on in IB.
>
> --
> 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
_______________________________________________
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