The main inspiration to develop this control came fom @JustSid who wrote the JUCollectionView. But
CNGridView was written from ground up, it uses ARC and has a bunch of properties to customize its layout and behavior.
CNGridView was only testet on 10.7 Lion & 10.8 Mountain Lion.
Here is a shot of the included example application:
CNGridView the easy work is done in a few steps:
- open InterfaceBuilder and select your NIB file that should contain the grid view
- drag a
NSScrollViewto your target view, and set the class of
NSScrollView's content view to
- connect the delegate & dataSource
- implement all required delegate/dataSource methods and fill it with appropriate content.
Now you have a fully functionable grid view. Please take a look at the example.
The code is provided as-is, and it is far off being complete or free of bugs. If you like this component feel free to support it. Make changes related to your needs, extend it or just use it in your own project. Pull-Requests and Feedbacks are very welcome. Just contact me at [email@example.com](mailto:firstname.lastname@example.org?Subject=[CNGridView] Your component on Github) or send me a ping on Twitter @TheCocoaNaut.
The complete documentation you will find on CocoaDocs.
This software is published under the MIT License.
Software that uses CNGridView
If you like this component and if you're using it in your own software so please let me know. I'll give you a mention and set a link to your website (or the Mac App Store, if it exists).
CNGridView is used by this software: