thenounproject / collectionview Goto Github PK
View Code? Open in Web Editor NEWAn easy to use, highly customizable replacement for NSCollectionView.
License: MIT License
An easy to use, highly customizable replacement for NSCollectionView.
License: MIT License
The results controller protocol enforces some methods that are useful in some cases but because the existing types of controllers have different requirements, this protocol doesn't provide much.
Furthermore, with the controllers being generics, they must have alternatives to the protocol methods (currently _object(at:)
) to make use of those generic types.
Possible solutions:
numberOfSections
, numberOfObjects(in:)
)The other goal here is to break out the different controller processing aspects to make them easily reused by different types of controllers. For example, something similar to the ManagedResultsController could serve well as a base for the others to build upon.
Right now the CollectionViewDelegate functions related to item selection all report a single indexPath. If you select multiple it will report one (usually the last) indexPath that was selected or deselected.
The alternative would be to report all of the index paths in a set (or array) to give you greater control over how to react to the change.
@objc optional func collectionView(_ collectionView: CollectionView, didSelectItemAt indexPath: IndexPath)
Would become
@objc optional func collectionView(_ collectionView: CollectionView, didSelectItemsAt indexPath: Set<IndexPath>)
Why not make it a Cocoapods library.
This is definitely cause by a flaw in the moving logic.
The cell manipulation logic and editing sessions could certainly be improved. It started for a simple use case but was then extended without implementing the proper algorithms (also, not sure what the proper ones are but I'm assuming they exist).
Here is an example form Lingo.
https://developer.apple.com/documentation/appkit/nscollectionviewprefetching
It's useful for load data like large images.
Does CollectionView support multi select by mouse ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.