Skip navigation.
 
mlRe: Getting thumbnail of document to appear?
FROM : Greg Casey
DATE : Thu Nov 07 19:18:50 2002

> NSImage and NSImageView are all you need.
>
> You can init the image with the contents of the file and it will
> display a representation of that file using the size of your
> NSImageView. You should configure the NSImageView to size the image
> proportionally. NSImage supports most common image files (jpg, gif,
> png, etc...), pdf, and eps documents. For other types of documents,
> you're on your own, I think.
>
> -gtc
>
> On Thursday, November 7, 2002, at 12:41  AM, Alex Rice wrote:
>

>> On Wednesday, November 6, 2002, at 05:00  PM, Dave Mattson wrote:
>>

>>> Good evening:
>>>
>>> Does anyone know what I need to provide to get my application to
>>> support and
>>> present thumb nail images instead of just a standard file icon.
>>> cocoa-OSX of
>>> course.  Where do those come from anyway?
>>>
>>> My question is just where I can find some documentation.
>>>
>>> I have gone back through all the documentation and can't seem to
>>> find any
>>> clues.
>>>

>>
>> NSImage *theFileIcon = [[NSWorkspace sharedWorkspace] iconForFile:
>> @"/path/to/file"];
>> [myImageViewOutlet setImage: theFileIcon];
>>
>> Oh wait-- I just reread your message and I'm not sure this is what
>> you are after. The method above will show the appropriate icon for
>> whatever file type it is, but I don't think it "previews" the file.
>> However some file types show a preview. I don't know maybe I
>> shouldn't be answering :-)
>>
>> Alex Rice <<email_removed>>
>> Mindlube Software
>> http://mindlube.com/
>> _______________________________________________
>> cocoa-dev mailing list | <email_removed>
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>> Do not post admin requests to the list. They will be ignored.
>>
>>

>
>
> -gtc
>
>



-gtc
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlGetting thumbnail of document to appear? Dave Mattson Nov 7, 01:00
mlRe: Getting thumbnail of document to appear? Alex Rice Nov 7, 06:41
mlRe: Getting thumbnail of document to appear? Chris Ridd Nov 7, 10:08
mlRe: Getting thumbnail of document to appear? Dave Mattson Nov 7, 16:46
mlRe: Getting thumbnail of document to appear? Brent Gulanowski Nov 7, 16:53
mlRe: Getting thumbnail of document to appear? Greg Casey Nov 7, 19:18
mlRe: Getting thumbnail of document to appear? Chris Ridd Nov 8, 08:17
mlRe: Getting thumbnail of document to appear? Brent Gulanowski Nov 10, 08:54
mlRe: Getting thumbnail of document to appear? David Remahl Nov 10, 16:51