Re: How can I launch Preview.app from my application for collection of images
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: Fritz Anderson <email@hidden>
- Date: Thu, 16 Oct 2008 11:04:22 -0500
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.
Consider -[NSWorkspace openFile:], which opens the file in the user's
_preferred_ application for viewing the file. The user may have a good
reason to prefer something other than Preview.
— F
--
Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- <http://x3u.manoverboard.org/
>
_______________________________________________
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