Re: Sending an image to Preview to preview the image

2008-05-07 Thread Bill
On May 7, 2008, at 9:46 AM, Ken Thomases wrote: On May 7, 2008, at 10:56 AM, Bill wrote: I'm embarrassed to say that you're correct. What I remembered was a print preview, and it bypassed the regular print window and Preview button. Instead the image went directly to the preview with t

Re: Sending an image to Preview to preview the image

2008-05-07 Thread Ken Thomases
On May 7, 2008, at 10:56 AM, Bill wrote: I'm embarrassed to say that you're correct. What I remembered was a print preview, and it bypassed the regular print window and Preview button. Instead the image went directly to the preview with the Cancel and Print buttons at the bottom. I just

Re: Sending an image to Preview to preview the image

2008-05-07 Thread Bill
On May 7, 2008, at 8:14 AM, Ken Thomases wrote: On May 6, 2008, at 5:08 PM, Kimo wrote: My app produces a list of images (NSData format), and I'd like the app Preview to display the image when the user double-clicks on an image in my app. Currently I use NSPerformService as shown below,

Re: Sending an image to Preview to preview the image

2008-05-07 Thread Ken Thomases
On May 6, 2008, at 5:08 PM, Kimo wrote: My app produces a list of images (NSData format), and I'd like the app Preview to display the image when the user double-clicks on an image in my app. Currently I use NSPerformService as shown below, which works, but Preview always asks to save the

Re: Sending an image to Preview to preview the image

2008-05-06 Thread Bill
On May 6, 2008, at 3:50 PM, Ricky Sharp wrote: For another feature of the app (which also generates PDF), I changed the workflow to first run an NSSavePanel to let the user specify file name and location. I then generate the PDF at that location and launch Preview to open it. I'm not sure

Re: Sending an image to Preview to preview the image

2008-05-06 Thread Ricky Sharp
On May 6, 2008, at 5:40 PM, Bill wrote: On May 6, 2008, at 3:31 PM, Michael Watson wrote: Thoughts: 1. Why not build your own preview panel/window? It's remarkably easy to do if you already have the image data in an NSData object. True, but preview has other advantages, such as saving th

Re: Sending an image to Preview to preview the image

2008-05-06 Thread Bill
On May 6, 2008, at 3:31 PM, Michael Watson wrote: Thoughts: 1. Why not build your own preview panel/window? It's remarkably easy to do if you already have the image data in an NSData object. True, but preview has other advantages, such as saving the file to various formats. Sure I could

Re: Sending an image to Preview to preview the image

2008-05-06 Thread Michael Watson
Thoughts: 1. Why not build your own preview panel/window? It's remarkably easy to do if you already have the image data in an NSData object. 2. If you must use Preview, you could write the image to a temp file and tell Preview to open that via NSWorkspace's - openFile:withApplication: meth