New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for multiple selections #126
Conversation
Currently looking at this pull request. A few points that I’d like to bounce:
Aside from that, great patch, merged already and doing cleanup. Thanks. :) |
Hmm. That's odd about the toggling. I'm definitely using that feature in the code that I forked this for. Did you find the problem already, or should I have a look at it? That naming change sounds good. |
Changes are now on the develop branch. :) On Jul 23, 2012, at 21:57, Aneel Nazareth
|
Hi, I tried to use this code on the develop branch but it do not seem to be alreayd added. Could you check it please? |
This feature is not supported yet. You might want to look into alternate On Aug 15, 2012, at 6:03, diegomagal notifications@github.com wrote: Hi, I tried to use this code on the develop branch but it do not seem to be — |
Hi ! This AQGridView is a very nice framework, and I'm already toying with the dev version, as I need multiple selection. It occurred to me that when setAllowsMultipleSelection is called with false, you should unselect the selected items or, at least, add a unselectAll method. For now, here is my quick and dirty way to address that :
Frederic |
@fbayle I think you should be able to deselect things by setting On Aug 21, 2012, at 6:46, fbayle notifications@github.com wrote: Hi ! This AQGridView is a very nice framework, and I'm already toying with the It occurred to me that when setAllowsMultipleSelection is called with For now, here is my quick and dirty way to address that :
Frederic — |
I needed multiple selections, so I pulled the Dev branch. However there appears to be a bug in that the _selectedIndices array is not cleared during reloadData. In my case I'm deleting items from the list based on multiple selections, but I've found that if the user deletes a single item, (I then reload the gridView), then goes back and deletes another single item, the _selectedIndices.count shows 2 on the second delete attempt because selectedIndices still contains the index from the previous selection (prior to the reload). My hack / fix for this has been to add [_selectedIndices removeAllIndexes]; to -(void) reloadData in AQGrivdView.m but I'm not sure if this is the best way to do it, or even if this functionality would suit everyone. |
I added support for multiple selection a while back, but am not using it anymore. Figured I would post here in case it is of any value to you guys, as I'm thinking of deleting the fork. 2964b15 |
Hi Chadpod, I'm using it in my app "Personal Wiki" (iPad). As I allow users to do multiple selections on items in the grid, which they can then delete. Rather than deleting the fork and hence removing this functionality, is there any way it can be rolled into the master branch ? |
It seems that On Apr 22, 2013, at 2:46 PM, Roger Clark notifications@github.com wrote:
|
@evadne I see it in development, but not master? @synergie7 I'll leave my fork as is for the time being, but I recommend you move to the official branch, as I haven't maintained my implementation. Glad you found it of use anyway! |
Yes — it is on development indeed. On Apr 22, 2013, at 2:58 PM, Chad Podoski notifications@github.com wrote:
|
OK. I'll switch to the master branch. Thanks |
Sorry. I mean I'll use the Dev branch. To be honest, its been ages since I last worked on the app, I can't really remember which branch I ended up using. I'm not sure if I used @chadpod's fork (probably not). |
Added a new flag enabling multiple selections and replaced _selectedIndex with an NSIndexSet