osx - custom list control in cocoa -


i trying in screenshot alt text http://smokingapples.com/wp-content/uploads/2009/12/socialite-hud.jpg

in cocoa, mean custom list control. know how kind of things can done?

thanks in advance help,

regards,

update:

nstableview supports view-based rows variable heights:

- (nstableviewrowsizestyle)rowsizestyle

return value
row style style. see nstableviewrowsizestyle supported options.

discussion
row size style can modified on row row basis invoking delegate method tableview:heightofrow:, if implemented.

the rowsizestyle defaults nstableviewrowsizestylecustom. nstableviewrowsizestylecustom indicates use rowheight of table, instead of pre-determined system values.

generally, rowsizestyle should nstableviewrowsizestylecustom except "source lists". implement variable row heights, set value nstableviewrowsizestylecustom , implement tableview:heightofrow: in delegate.

availability
available in os x v10.7 , later.


original answer:

an approach, that's more modern view hacking nstableview either 1 of these:

http://github.com/sdegutis/sdlistview

sdlistview - clone of nscollectionview, variable-height items , using single column.

http://github.com/uliwitness/pxlistview

pxlistview - optimized list view control mac os x 10.5 , greater. created after wrote this post on subject.

pxlistview licensed under new bsd license.

pxlistview uses similar optimizations uitableview iphone, enqueuing , dequeuing nsviews used display rows, in order keep low memory footprint when there large number of rows in list, yet still allowing each row represented nsview, easier dealing cells.

the architecture of control based on list view controls present in both tweetie (mac) , echofon (mac).

the project still work in progress, , such no documentation exists @ current.

[edit: case wasn't obvious: class descriptions seen above quotations of course ;) "i" in latter 1 refers "alex rozanski", not me.]


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -