View Full Version : acessing finder preview image in cocoa

Sep 25, 2008, 02:57 AM
My question can we access the preview image shown by finder in cocoa
can we use it as NSImage object ????
Are these preview images are stored somewhere (means in resource fork )
can we set/edit this preview image

Sep 25, 2008, 08:24 AM
You can use QLThumbnailImageCreate() to generate a thumbnail.

Sep 25, 2008, 09:15 AM

That thread discussed a number of ways to tackle this. The OP in that thread eventually chose a domain-specific solution by using a thumbnail stored in the resource fork by adobe apps, but there are some links and discussions about the actual code that Finder uses to do this.

QLThumbnailImageCreate is probably a better answer, but is 10.5 only. You didn't say what OSs you are targeting, so that may be OK.


Sep 25, 2008, 12:22 PM
The code at the end of thread seems to be useful .... i will try it and will come back here again ..... Thanks for replies guys