Using NSCollectionView 10.11 features in 10.10 and 10.9

Hi there... not sure if this is the right place to ask this question.


WWDC 2015 introduced some new features for NSCollectionView (I'm guessing they are new). If I update my Application code accordingly and build with the latest SDK (10.11) and I set my deployment target for 10.9 - do I get to use those new features? or will my application break on an earlier version of the operating system?



- David

Replies

HI, David,


I am trying to navigate the same waters as you. The properties and methods declared in the new header are definitely for 10_11 and up. However, I did attempt to run the CocoaSlideCollection sample code in Yosemite after building it with 10_10 as deployment target. It ran, but it failed to select JPEGs when browsing.


My expectation is that we will have to run different code for NSCollectionView and maybe load different NIBs, depending on the outcome of a test for OS X version. I have a question in to Apple about that.


Best regards,


Tom McVay

Good idea about running up the sample code... silly me - I should have thought of that - sometimes the obvious gets in the way.