• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSCollectionView: Different-sized items? Docs?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSCollectionView: Different-sized items? Docs?
      • From: Scott Anguish <email@hidden>
    • Re: NSCollectionView: Different-sized items? Docs?
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: CGFloat and 64 Bit
  • Next by Date: Re: Question regarding nullified relationship objects
  • Previous by thread: Re: Question regarding nullified relationship objects
  • Next by thread: Re: NSCollectionView: Different-sized items? Docs?
  • Index(es):
    • Date
    • Thread