On Aug 21, 2009, at 3:48 AM, Georg Seifert wrote:

Hi,

I want to build a custom cell similar to the one in "Transfer" list in Cyberduck. I need several pulldowns and input fields. I did looked at the code of Cyberduck but as it is written in Java I did not understand it completely. What I found is that the Cell, in its drawwithFrame method, adds subview to the TableView and this subview handles all the drawing and handling. Is this appropriate or is there a better solution.

More often than not, people don't manage the views correctly. It can be an acceptable solution, and I gave a talk about it at WWDC this year (the sample code will be available once SnowLeopard is out, sorry, I can't give it out earlier).

Usually, you can implement the appropriate thing with sub-cells, or manually.

One such example I wrote for WWDC a few years ago: 
http://developer.apple.com/samplecode/PhotoSearch/

corbin





_______________________________________________

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 arch...@mail-archive.com

Reply via email to