• 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
Re: Stacking views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stacking views


  • Subject: Re: Stacking views
  • From: Andreas Mayer <email@hidden>
  • Date: Fri, 15 Feb 2008 17:42:55 +0100


Am 15.02.2008 um 13:08 Uhr schrieb Gernot:

I need to have a view that stacks its
subviews in top of each other. Like a TableView. It gets its
represented Objects from an NSArrayController, and assigns it to some
View that it then adds as a subview. It also cares about the
selection, scrolling and so on. But the difficult point is that those
views can have different heights, dependent on their
representedObject.

I did something like that.

It borrows some concepts from NSCollectionView. Right now you need to assign an array of objects manually, but I guess creating a binding should not be to difficult. It also does not use any animations.

Here is a small test app:

http://www.harmless.de/download/AMCollectionViewTest.zip

I'd probably need to add at least a bit of documentation before publicly distributing the code though ...


Andreas _______________________________________________

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


References: 
 >Stacking views (From: Gernot <email@hidden>)

  • Prev by Date: Re: Uncaught exceptions thrown by Cocoa documented anywhere?
  • Next by Date: Re: Uncaught exceptions thrown by Cocoa documented anywhere?
  • Previous by thread: Re: Stacking views
  • Next by thread: Re: Stacking views
  • Index(es):
    • Date
    • Thread