• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom NSCollectionViewLayout isn't causing scrollbars to appear
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Custom NSCollectionViewLayout isn't causing scrollbars to appear (From: Steve Mills <email@hidden>)
 >Re: Custom NSCollectionViewLayout isn't causing scrollbars to appear (From: Rob Petrovec <email@hidden>)

  • Prev by Date: Re: Connecting NSTextStorage to a string
  • Next by Date: Re: Animating autolayout constraint changes for subviews
  • Previous by thread: Re: Custom NSCollectionViewLayout isn't causing scrollbars to appear
  • Next by thread: Connecting NSTextStorage to a string
  • Index(es):
    • Date
    • Thread