Help! Open File always returns YES
Help! Open File always returns YES
- Subject: Help! Open File always returns YES
- From: John McGruer <email@hidden>
- Date: Fri, 15 Mar 2002 22:40:01 +0800
I want to open a help file and need to check that the file was successfully
opened. I'm using:
result = [[NSWorkspace sharedWorkspace] openFile:helpFilePath_1
withApplication:@"Preview"];
The problem is that "result" is always YES even though the help file does
not exist yet! shouldn't "result = NO if the file does not exist? How to get
around this problem? Many thanks
PS If I use this form:
result = [[NSWorkspace sharedWorkspace] openFile:helpFilePath_2];
"result" still = YES but Internet Explorer is launched, even though
helpFilePath_2 is a .pdf file!! What gives?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.