Re: pulldown in custom NSCell

2009-08-31 Thread Georg Seifert

Hi corbin and Andreas,

Both approaches look promising. I will play with them.

Thanks
Georg



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.


In case you don't need a fully fledged TableView, have a look at  
this and see if it fits your bill:


http://www.harmless.de/cocoa-code.php#collectionview


___

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


Re: pulldown in custom NSCell

2009-08-28 Thread Andreas Mayer


Am 21.08.2009 um 12:48 Uhr schrieb Georg Seifert:

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.


In case you don't need a fully fledged TableView, have a look at this  
and see if it fits your bill:


http://www.harmless.de/cocoa-code.php#collectionview


Andreas
___

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


Re: pulldown in custom NSCell

2009-08-28 Thread Corbin Dunn


On Aug 21, 2009, at 7:16 AM, Corbin Dunn wrote:



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).


The code is now available:

http://developer.apple.com/mac/library/samplecode/AnimatedTableView/index.html

I highly recommend that people download and play with this sample.

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


Re: pulldown in custom NSCell

2009-08-21 Thread Corbin Dunn


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