可可中的自定义列表控件

可可中的自定义列表控件,第1张

概述我试图在这个截图 alt text http://smokingapples.com/wp-content/uploads/2009/12/socialite-hud.jpg中得到类似的东西 在可可,我的意思是自定义列表控件.你知道怎么做这种事吗? 在此先感谢您的帮助, 问候, 更新: NSTableView现在支持具有可变高度的基于视图的行: - (NSTableViewRowSizeStyle 我试图在这个截图 alt text http://smokingapples.com/wp-content/uploads/2009/12/socialite-hud.jpg中得到类似的东西

在可可,我的意思是自定义列表控件.你知道怎么做这种事吗?

在此先感谢您的帮助,

问候,

解决方法 更新:

NStableVIEw现在支持具有可变高度的基于视图的行:

- (NStableVIEwRowSizeStyle)rowSizeStyle

Return Value
The row style style. See NStableVIEwRowSizeStyle for the supported options.

discussion
The row size style can be modifIEd on a row by row basis by invoking the delegate method tableVIEw:heightOfRow:,if implemented.

The rowSizeStyle defaults to NStableVIEwRowSizeStyleCustom. NStableVIEwRowSizeStyleCustom indicates to use the rowHeight of the table,instead of the pre-determined system values.

Generally,rowSizeStyle should always be NStableVIEwRowSizeStyleCustom except for “source Lists”. To implement variable row heights,set the value to NStableVIEwRowSizeStyleCustom and implement tableVIEw:heightOfRow: in the delegate.

Availability
Available in OS X v10.7 and later.

原答案:

一种比查看黑客NStableVIEw更现代的方法可能是以下任何一种方法:

http://github.com/sdegutis/SDListView

SDListVIEw – Clone of NSCollectionVIEw,but with
variable-height items and only using a
single column.

http://github.com/uliwitness/PXListView

PXListVIEw – An optimized List vIEw control for Mac
OS X 10.5 and greater. It was created
after I wrote 07002 on the
subject.

PXListVIEw is licensed under the New
BSD license.

PXListVIEw uses similar optimizations
as UItableVIEw for the iPhone,by
enqueuing and dequeuing NSVIEws which
are used to display rows,in order to
keep a low memory footprint when there
are a large number of rows in the
List,yet still allowing each row to
be represented by an NSVIEw,which is
easIEr than dealing with cells.

The architecture of the control is
based on the List vIEw controls which
are present in both TweetIE (Mac) and
Echofon (Mac).

The project is still very much a work
in progress,and as such no
documentation exists at current.

[编辑:它的情况并不明显:上面看到的课程描述当然是引用;)后者中的“我”实际上是指“Alex Rozanski”,而不是我.

总结

以上是内存溢出为你收集整理的可可中的自定义列表控件全部内容,希望文章能够帮你解决可可中的自定义列表控件所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1007531.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-22
下一篇2022-05-22

发表评论

登录后才能评论

评论列表(0条)

    保存