Hi,

I would like to create a source view like Xcode 4's project navigator view. It 
will have "parent" views (e.g. the project) with a twist down triangle that, 
when clicked, will reveal the contents (e.g. files) in an animation that slides 
down. Many of these parent views can exist at the top level. When one is 
revealed, the ones below will slide down as well.

What is the best way to implement this? Is a table view with NSTableCellView's 
a reasonable approach? I'm wondering if that is the case since the items (when 
opened) will easily have differing heights depending on the number of children. 
Is an NSOutlineView more appropriate here (at least I get the sliding animation 
for free). One complication is that I'd like to be able to select the parent 
view in the same way that you can in Xcode (that brings up the project/targets 
inspector) to bring up a "summary" detail view.

I don't need a full implementation (not that I'd turn it away if one is 
available!), but a high-level view of the best approach to do this would be 
greatly appreciated!

Cheers,
Demitri
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to