NSCollectionView: Different-sized items? Docs?
NSCollectionView: Different-sized items? Docs?
- Subject: NSCollectionView: Different-sized items? Docs?
- From: Jerry Krinock <email@hidden>
- Date: Mon, 9 Feb 2009 12:57:31 -0800
I need a "collection of views" to display subviews of nonequal
heights, like this:
--------------------------------------
This item happens to have 3 text boxes
This item happens to have 3 text boxes
This item happens to have 3 text boxes
--------------------------------------
This item happens to have 1 text boxes
--------------------------------------
This item happens to have 5 text boxes
This item happens to have 5 text boxes
This item happens to have 5 text boxes
This item happens to have 5 text boxes
This item happens to have 5 text boxes
--------------------------------------
It seems that NSCollectionView does not support variable item frame
sizes like this, because it is hard-wired to arrange items in a 2-
dimensional grid. Could someone please confirm that?
Is there any basic documentation like a "Collection View Programming
Guide", covering NSCollectionView and friends? I've not been able to
find any.
I believe NSTableView has the same restriction of equal row heights.
Is that correct?
So I was thinking I'd write my own "collection view class" which would
basically be an NSView containing an array of subviews. Does anyone
have a better approach?
Thanks,
Jerry Krinock
_______________________________________________
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