mac-syphon: Fix NSURL selector compatibility 10.8

Use NSURL path.fileSystemRepresentation to be
compatibile with the 10.8 SDK. This appears to be
a convenience selector and should operate the same.
This commit is contained in:
John Bradley 2015-03-25 19:01:47 -05:00
parent 96353332f3
commit 54fdd6555e

View File

@ -739,8 +739,9 @@ static inline void app_to_data(NSRunningApplication *app, obs_data_t *app_data)
obs_data_set_string(app_data, "name", app.localizedName.UTF8String);
obs_data_set_string(app_data, "bundle",
app.bundleIdentifier.UTF8String);
// Until we drop 10.8, use path.fileSystemRepsentation
obs_data_set_string(app_data, "executable",
app.executableURL.fileSystemRepresentation);
app.executableURL.path.fileSystemRepresentation);
obs_data_set_int(app_data, "pid", app.processIdentifier);
}