Giter Site home page Giter Site logo

jucollectionview's Introduction

##Overview JUCollectionView aims to be a drop in replacement for the extremely slow NSCollectionView. Instead of loading every possible cell at once, JUCollectionView only displays the visible cells. To improve the performance even further, JUCollectionView also reuses cells where possible. This means that it only has to load a batch of cells to cover the view and then reuse them its whole lifetime.

Unlike NSCollectionView, JUCollectionView doesn't use NIB instantiating but a approach similar to UITableView on iOS. It asks its data source for a cell (a subclass of JUCollectionViewCell). It also provides identifier and identifier based dequeuing of cells, allowing you to display various kinds of cells while still having the benefit of reusable cells.

##Features JUCollectionView is currently at its very beginning, it features simple mouse selection (no multiple selection at the moment) and a very primitive cell class which can display an NSImage and draw a selection (although you can extend that easily). It can display a few hundred thousand cells without lags on an old 2007 MacBook Pro (try this with an NSCollectionView) and can also be used as a tile map renderer by fixed the number of columns and rows.

##License JUCollectionView is under the MIT license so basically: Do whatever you want to do with it! This also includes forking it and adding new features ;)

jucollectionview's People

Contributors

justsid avatar

Stargazers

Chiu Hoi Po avatar

Watchers

Chiu Hoi Po avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.