• 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: How can I launch Preview.app from my application for collection of images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can I launch Preview.app from my application for collection of images


  • Subject: Re: How can I launch Preview.app from my application for collection of images
  • From: Randall Meadows <email@hidden>
  • Date: Mon, 20 Oct 2008 10:21:41 -0600

On Oct 16, 2008, at 10:04 AM, Fritz Anderson wrote:

On 16 Oct 2008, at 10:48 AM, Alexander Shmelev wrote:

I have set of images, how can i open Preview.app from my Cocoa application to display them all?

See -[NSWorkspace openFile:withApplication:]. If your images are in memory only, you'll have to save them in temporary files. I don't know of a way to make Preview display an image that isn't in a file.

Tangential to the OP, but might be worth the electrons:

Preview can display the contents of the clipboard (when it contains image data) by using File -> New From Clipboard (cmd-N). (The OP might be able to managed this via scripting, but the new files in Preview won't be related or linked to the images in the original app in any meaningful way.)
_______________________________________________


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: How can I launch Preview.app from my application for collection of images
      • From: Fritz Anderson <email@hidden>
References: 
 >How can I launch Preview.app from my application for collection of images (From: Alexander Shmelev <email@hidden>)
 >Re: How can I launch Preview.app from my application for collection of images (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: lockFocus error
  • Next by Date: Re: [OT] How do people use and contribute to this list?
  • Previous by thread: Re: How can I launch Preview.app from my application for collection of images
  • Next by thread: Re: How can I launch Preview.app from my application for collection of images
  • Index(es):
    • Date
    • Thread