• 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: Quick Look with native types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quick Look with native types?


  • Subject: Re: Quick Look with native types?
  • From: Rob Keniger <email@hidden>
  • Date: Fri, 28 Nov 2008 14:50:21 +1000


On 28/11/2008, at 2:07 PM, Jean-Nicolas Jolivet wrote:

mmm just in case I wasn't clear (I realize I might be looking at this from the wrong angle): I would want to use "Quick Look" to show preview of images in my app, I dont want to write a Quick Look plugin so that my custom document type can be previewed in the finder or anythign like that...

What I want to do is basically what Mail.app does with attachment...There's the save button, and next to it there's a little Quick Look button that will show the attachment in a quick look window... I would like to do that in my app, with bitmap images that are already on the file system...


There's no public API to do this at present. You'd need to create a temporary file and use the "qlmanage -p /path/to/thefile" tool via NSTask.

Of course, you'd need to write a QuickLook generator in order for the temporary file to be previewed correctly.

If it were me, I'd just use a custom preview class as you have already done.

--
Rob Keniger



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Quick Look with native types?
      • From: "Julien Jalon" <email@hidden>
References: 
 >Quick Look with native types? (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: Quick Look with native types? (From: Rob Keniger <email@hidden>)
 >Re: Quick Look with native types? (From: Jean-Nicolas Jolivet <email@hidden>)
 >Re: Quick Look with native types? (From: Jean-Nicolas Jolivet <email@hidden>)

  • Prev by Date: Re: Quick Look with native types?
  • Next by Date: Re: What is the best way to get an NSSlider to respond to the mouse scroll wheel?
  • Previous by thread: Re: Quick Look with native types?
  • Next by thread: Re: Quick Look with native types?
  • Index(es):
    • Date
    • Thread