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. seenstableviewrowsizestyle
supported options.discussion
row size style can modified on row row basis invoking delegate methodtableview:heightofrow:
, if implemented.the
rowsizestyle
defaultsnstableviewrowsizestylecustom
.nstableviewrowsizestylecustom
indicates use rowheight of table, instead of pre-determined system values.generally,
rowsizestyle
shouldnstableviewrowsizestylecustom
except "source lists". implement variable row heights, set valuenstableviewrowsizestylecustom
, implementtableview: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
Post a Comment