Code Monkey home page Code Monkey logo

bccollectionview's People

Contributors

jelledelaender avatar pieteromvlee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bccollectionview's Issues

Strange resize issue, causing scrollview background to draw.

I'm trying to implement BCCollectionView in my app and am noticing some strange drawing behavior. It feels like when I'm resizing the content and there is extra room it's not filling the scroll view area with the background color and thus the scroll view background color is being drawn instead (blue in the case of my demo):

http://media.clickablebliss.com/blog/movies/scrollview_inner_view_resizing.mov

Also curious that the scroll view inner content resizes over time.

When I added a scroll view to the  example project on aaronbrethorst's fork everything seemed ok.

Been trying to figure this out but am coming up empty. Any ideas?

One other issue I had is how you can sometimes find a sweet spot where the content size causes the scrollbars to appear and the content grid to resize, which causes the scroll bars to disappear, which causes the grid to resize, ad infinitum. Fun times. :)

http://media.clickablebliss.com/blog/movies/dancing_cells.mov

SVG image

I want to display SVG image file on BCCollectionView how i do that?

Broken on Mountain Lion

No idea if this code is still being maintained, but its broken on Mountain Lion. The views aren't added until the scroll comes to an end.

Multiple selection delete sometimes not getting drawn right

Using BCCollectionView in my app I'm noticing that when I select a few items and hit delete, sometimes the drawing isn't right.

http://media.clickablebliss.com/blog/movies/delete_selection_bug.mov

When the managed object context changes I end up calling

[self.businessCollectionView reloadDataWithItems:self.businesses emptyCaches:NO];

If I change this to YES it works fine, though flickers a little.

I get the sense that with emptyCaches:NO you are trying to be good and only redraw the dirty rect but I wonder if you are fully taking into account everything that becomes dirty as cells move around. I dunno. :(

There are two "return" statements in the same method without any corresponding "if" statement?

In the following method which locates at BCCollectionView.m, there are two return statements in the same method without any corresponding "if" statement. How does this happen? Is this a bug or some kind of special syntax ?

`- (NSIndexSet *) indexesOfItemContentRectsInRect: (NSRect)aRect
{
NSArray *itemLayouts = [layoutManager itemLayouts];
NSIndexSet *visibleIndexes = [itemLayouts indexesOfObjectsWithOptions: NSEnumerationConcurrent passingTest: ^BOOL(id itemLayout, NSUInteger idx, BOOL *stop){ return NSIntersectsRect([itemLayout itemRect], aRect); }];
return visibleIndexes;

NSUInteger firstIndex = [layoutManager indexOfItemContentRectAtPoint:NSMakePoint(NSMinX(aRect), NSMinY(aRect))];
NSUInteger lastIndex  = [layoutManager indexOfItemContentRectAtPoint:NSMakePoint(NSMaxX(aRect), NSMaxY(aRect))];

if (firstIndex == NSNotFound)
    firstIndex = 0;

if (lastIndex == NSNotFound)
    lastIndex = [contentArray count]-1;

NSMutableIndexSet *indexes = [NSMutableIndexSet indexSet];
for (NSUInteger i=firstIndex; i<lastIndex+1; i++) {
    if (NSIntersectsRect(aRect, [layoutManager contentRectOfItemAtIndex:i]))
        [indexes addIndex:i];
}
return indexes;

}`

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.