Re: NSWorkspace issue

2014-05-07 Thread Varun Chandramohan
Ah yes, that was the mistake. I did not notice it. Probably its always a good idea to use fileURLWithPath as I always deal with file urls and not http://. On 7/05/2014 3:58 pm, "Ken Thomases" wrote: >On May 7, 2014, at 12:02 AM, Varun Chandramohan wrote: > >>NSURL *fileURL = [NSURL >>URLWit

Re: NSWorkspace issue

2014-05-06 Thread Ken Thomases
On May 7, 2014, at 12:02 AM, Varun Chandramohan wrote: >NSURL *fileURL = [NSURL URLWithString:@"/Users/usr/Desktop/libd.dylib"]; This is not correct. +[NSURL URLWithString:] expects a valid URL string. What you're providing is a file path string, which is not a URL string. A URL string m

NSWorkspace issue

2014-05-06 Thread Varun Chandramohan
Hi All, I wanted to open a Finder window from my app with a file pre-selected. The user could perform any Finder operations needed. I looked around the internet and it turns out the best way to do this is using NSWorkspace. - (void)applicationDidFinishLaunching:(NSNotification *)aNotification