• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting thumbnail of document to appear?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting thumbnail of document to appear?


  • Subject: Re: Getting thumbnail of document to appear?
  • From: Alex Rice <email@hidden>
  • Date: Wed, 6 Nov 2002 22:41:57 -0700

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@hidden>
Mindlube Software
http://mindlube.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Getting thumbnail of document to appear?
      • From: Chris Ridd <email@hidden>
References: 
 >Getting thumbnail of document to appear? (From: "Dave Mattson" <email@hidden>)

  • Prev by Date: Re: RgnHandle replacement?
  • Next by Date: Re: RgnHandle replacement?
  • Previous by thread: Getting thumbnail of document to appear?
  • Next by thread: Re: Getting thumbnail of document to appear?
  • Index(es):
    • Date
    • Thread