Fix character escaping for "New File Here" service

This also makes this service work on Tiger.
This commit is contained in:
Bjorn Winckler
2008-12-22 16:12:21 +01:00
parent b8d2ad693a
commit 48874c704b
+1 -1
View File
@@ -1212,7 +1212,7 @@ fsEventCallback(ConstFSEventStreamRef streamRef,
if (!dirIndicator)
path = [path stringByDeletingLastPathComponent];
path = [path stringByReplacingOccurrencesOfString:@" " withString:@"\\ "];
path = [path stringByEscapingSpecialFilenameCharacters];
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
BOOL openInCurrentWindow = [ud boolForKey:MMOpenInCurrentWindowKey];