Mitchell

iChat doesn't use a standard NSTableView or NSOutlineView. The standard views use one NSCell for each column and draw each row's contents with the same NSCell (think of using a stencil when painting). For core animation, the ideal setup is an NSView for each row. NSCollectionView could serve as a starting point for your purpose, but writing your own NSView with row subviews is probably easier. I have been working on something similar to what you are asking, but the amount of work involved is quite substantial.

If you want to pursue this further, let me know and I can post some tips based on my own experience. I would also recommend downloading the iPhone SDK and look at how the iPhone handles tables for some ideas about implementation (as we cannot discuss those specifics here).

There are other obstacles to overcome once you have the view written (like how to handle a layer-backed view inside an NSScrollView - again, tips are welcome here), but the undertaking may be worthwhile depending on your reasons for the animation.

Best of luck

Luke Gladding


On Mar 26, 2008, at 9:58 AM, [EMAIL PROTECTED] wrote:


Message: 4
Date: Tue, 25 Mar 2008 23:16:58 -0400
From: Mitchell Livingston <[EMAIL PROTECTED]>
Subject: NSOutlineView "sliding" animation
To: cocoa-dev@lists.apple.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Hello,

I want to use core animation to add a sliding effect when expanding/
collapsing rows in an outline view (like iChat's groups), but I can't
figure out where to get started. I have tried using nsview's animator,
but it doesn't seem to be compatible with this type of animation.
Could someone point me in the right direction (perhaps a relevant
tutorial, because my attempts at finding one have failed)?

Thank you,
Mitchell Livingston

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to