NSCollectionView issues
NSCollectionView issues
- Subject: NSCollectionView issues
- From: Half Activist <email@hidden>
- Date: Fri, 16 Oct 2009 16:32:44 +0200
Hi,
I'm using a NSCollectionView to display a stack of items (a table)
but since what's display is far too complex to be laid out
programmatically I went for the NSCollectionView. And it's been all
problems from the beginning.
First of all with setContent that never worked no matter what I
did...it only works if I bind the content to an nsarraycontroller.
Now, when I add a new item in this "table" i want to be able to
scroll it to the displayed area of the view, but the
frameForItemAtIndex: method only appeared in 10.6, so I decided to use
the subviews and get the frame this way, and now what did I discover:
Suppose I have N items and therefore N subviews in the
NSCollectionView, after changing the array that now contains N + 1
items, the nscollectionview has after the update N + N + 1 subviews!
So, accessing subviews is not an option either.
If anyone knows how to do fix these bugs, and how to disable the
animation, i'd be really glad. I'm considering writing an homebrew
nscollectionview.
regards.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden