Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stacking views




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.