Is that possible to open NSImage with Photoshop in Cocoa? And how to do it?
I would try the following (with Objective-C method hints).
Find a temporary folder
Use -[NSFileManager URLForDirectory: inDomain: appropriateForURL: url create: error:]
(Or the Desktop folder while testing)
Save the NSImage as a file in the temporary folder
(Use NSUUID
to get a random file name)
Get the NSBitmapImageRep
from the NSImage
Convert the NSBitmapImageRep
to NSData
Use -[NSData writeToURL: atomically:]
Open the file in Photoshop
Use -[NSWorkspace openFile: withApplication:]