#include "wx/mac/corefoundation/cfstring.h"
// Default path style
-#ifdef __WXMAC_OSX__
#define kDefaultPathStyle kCFURLPOSIXPathStyle
-#else
-#define kDefaultPathStyle kCFURLHFSPathStyle
-#endif
//===========================================================================
// IMPLEMENTATION
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
long wxMacExecute(wxChar **argv,
int flags,
- wxProcess *process)
+ wxProcess *WXUNUSED(process))
{
// Semi-macros used for return value of wxMacExecute
const long errorCode = ((flags & wxEXEC_SYNC) ? -1 : 0);
CFURLRef cfurlApp =
CFURLCreateWithFileSystemPath(
kCFAllocatorDefault,
- wxMacCFStringHolder(path),
+ wxCFStringRef(path),
kDefaultPathStyle,
true); //false == not a directory
// First, try creating as a directory
cfurlCurrentFile = CFURLCreateWithFileSystemPath(
kCFAllocatorDefault,
- wxMacCFStringHolder(*argv),
+ wxCFStringRef(*argv),
kDefaultPathStyle,
true); //true == directory
}
// as a regular file
cfurlCurrentFile = CFURLCreateWithFileSystemPath(
kCFAllocatorDefault,
- wxMacCFStringHolder(*argv),
+ wxCFStringRef(*argv),
kDefaultPathStyle,
false); //false == regular file
}
// so try creating it through CFURLCreateWithString
cfurlCurrentFile = CFURLCreateWithString(
kCFAllocatorDefault,
- wxMacCFStringHolder(*argv),
+ wxCFStringRef(*argv),
NULL);
}