开发者

How to show file thumbnails?

开发者 https://www.devze.com 2022-12-29 05:05 出处:网络
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 iconFo

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

精彩评论

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