开发者

How to show file thumbnails?

I got a T开发者_JAVA百科ableView with a list of files in a directory. Now i want to add a colum with the file-thumbnails. How do i do this?


The icon of the file can be obtained by NSWorkspace's iconForFile:, see Apple doc on NSWorkspace.

To get the thumbnail, one uses one of the public function of the client side of QuickLook called QLThumbnailImageCreate, see Apple doc on QuickLook. Note that this is a CoreFoundation-type call, not a Cocoa method. If you're not used to CoreFoundation, read here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜