Skip to content

CNGridView is a (wanna be) replacement for NSCollectionView. It has full delegate and dataSource support with method calls like known from NSTableView/UITableView.

Notifications You must be signed in to change notification settings

mralexgray/CNGridView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

##Overview CNGridView is a (wanna be) replacement for NSCollectionView. It has full delegate and dataSource support with method calls just like known from NSTableView and UITableView.

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 Example Application

###Usage To use 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 NSScrollView to your target view, and set the class of NSScrollView's content view to CNGridView
  • 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.

###Status Quo This is a project in progress and far byond being feature complete. There are some stuff I planned to implement - if time permits.

  • Drag & Drop
  • keyboard control
  • custom views for grid view items
  • custom views for grid view header & footer
  • sections
  • ...

If you have any ideas of features you are missing, or you wanna contribute this project, please let me know. Feedback is very welcome. (-:

###Documentation The documentation of this project is auto generated using Appledoc by @gentlebytes. You can find the complete reference here.

###License This software is published under the MIT License.

About

CNGridView is a (wanna be) replacement for NSCollectionView. It has full delegate and dataSource support with method calls like known from NSTableView/UITableView.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published