CFRelease(cfurlAppPath);
//PHEW! Success!
+ //Since a filename might have spaces in it, so surround it with quotes
if(cfsUnixPath)
- return wxMacCFStringHolder(cfsUnixPath).AsString(wxLocale::GetSystemEncoding());
+ return wxString(wxT("'")) + wxMacCFStringHolder(cfsUnixPath).AsString(wxLocale::GetSystemEncoding()) + wxString(wxT("'"));
}
else
{
}
}
- static void PrintOutType(wxString& sMessage, wxString sValue, CFTypeRef cfRef)
+ static void PrintOutType(wxString& sMessage, const wxString& sValue, CFTypeRef cfRef)
{
sMessage << wxT(" {");