• This repository has been archived on 16/Sep/2019
  • Stars
    star
    150
  • Rank 247,323 (Top 5 %)
  • Language
    Objective-C
  • Created about 12 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

Flattr this git repo Travis Status

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.

Contribution

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 protected]](mailto:[email protected]?Subject=[CNGridView] Your component on Github) or send me a ping on Twitter @TheCocoaNaut.

Documentation

The complete documentation you will find on CocoaDocs.

License

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:

  • Unbound - Unbound is a faster, simpler photo manager.
  • TunesBar+ - TunesBar+ simply sits in your menubar and tells you what track is currently playing in iTunes.

More Repositories

1

CCNStatusItem

CCNStatusItem is a subclass of NSObject to act as a custom view for NSStatusItem. It supports a customizable statusItemWindow handling any viewController for presenting the content.
Objective-C
222
star
2

CNSplitView

CNSplitView is an feature enhanced derivative of NSSplitView. It has support for sticky top or bottom toolbars for each of its subviews.
Objective-C
120
star
3

CCNPreferencesWindowController

CCNPreferencesWindowController is an Objective-C subclass of NSWindowController that automatically manages your custom view controllers for handling app preferences.
Objective-C
108
star
4

CNUserNotification

CNUserNotification is a kind of proxy to give OS X Lion 10.7 β€žthe sameβ€Ÿ support for user notifications like OS X Mountain Lion 10.8 does. Benefits are also a bit more flexibility since you are able to define a custom banner image or variable dismiss delay times.
Objective-C
93
star
5

CCNNavigationController

An Mac OS X Navigation Controller that acts mostly like the counter part on iOS - UINavigationController.
Objective-C
61
star
6

CCNLaunchAtLoginItem

An Objective-C class that encapsulates the functionality for launching a Mac application automatic on login, presented in a very simple interface.
Objective-C
16
star
7

Cooking-Recipes

Lose Sammlung veganer Rezepte
14
star
8

Xcode-Coordinator-Template

An Xcode File Template that creates an Objective-C Coordinator class.
Shell
7
star
9

Xcode-CodeSnippets

A set of Xcode CodeSnippets I use
7
star
10

CCNXML

Simple basic handling of XML files for both reading and manual creation in Objective-C.
Objective-C
4
star
11

CCNTreeNode

An easy way to build a tree of nested objects.
Objective-C
3
star
12

RadioTimeKit

The Swift SDK for TuneIn
Swift
2
star
13

Xcode-File-Templates

Shell
1
star