Skip to content

Instantly share code, notes, and snippets.

@tj-devel709
Created September 3, 2022 00:53
Show Gist options
  • Save tj-devel709/49de4b471559eb9504b4b67b0db2b389 to your computer and use it in GitHub Desktop.
Save tj-devel709/49de4b471559eb9504b4b67b0db2b389 to your computer and use it in GitHub Desktop.
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h 2022-02-23 10:56:32.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h 2022-05-31 15:02:49.000000000 -0400
@@ -410,7 +410,7 @@
* bundle identifier.
*
* @param inURLScheme the url scheme to set a default handler for
- * @param inHandlerBundeID the bundle identifier to be set as the default handler for the given scheme
+ * @param inHandlerBundleID the bundle identifier to be set as the default handler for the given scheme
*/
extern OSStatus
LSSetDefaultHandlerForURLScheme(
diff -ruN /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h
--- /Applications/Xcode_13.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h 2022-02-12 05:21:16.000000000 -0500
+++ /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h 2022-05-21 07:34:11.000000000 -0400
@@ -18,11 +18,11 @@
#include <TargetConditionals.h>
-#if TARGET_OS_OSX
+#if TARGET_OS_OSX || TARGET_OS_MACCATALYST
#ifndef __ICONSCORE__
#include <LaunchServices/IconsCore.h>
#endif
-#endif // TARGET_OS_OSX
+#endif // TARGET_OS_OSX || TARGET_OS_MACCATALYST
#ifndef __LSINFO__
#include <LaunchServices/LSInfo.h>
@@ -32,11 +32,11 @@
#include <LaunchServices/LSOpen.h>
#endif
-#if TARGET_OS_OSX
+#if TARGET_OS_OSX || TARGET_OS_MACCATALYST
#ifndef __LSQUARANTINE__
#include <LaunchServices/LSQuarantine.h>
#endif
-#endif // TARGET_OS_OSX
+#endif // TARGET_OS_OSX || TARGET_OS_MACCATALYST
#ifndef __UTCORETYPES__
diff -ruN /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h
--- /Applications/Xcode_14.0.0-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h 2022-05-31 15:02:49.000000000 -0400
+++ /Applications/Xcode_14.0.0-beta2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h 2022-06-17 11:25:18.000000000 -0400
@@ -47,9 +47,11 @@
/* ======================================================================================================== */
/* LaunchServices Type & Constants */
/* ======================================================================================================== */
+/* -10400 .. -10449 now reserved for LS */
CF_ENUM(OSStatus) {
kLSNo32BitEnvironmentErr = -10386, /* i386 is no longer supported*/
+ kLSMalformedLocErr = -10400, /* malformed internet locator file */
kLSAppInTrashErr = -10660, /* The app cannot be run when inside a Trash folder*/
kLSExecutableIncorrectFormat = -10661, /* No compatible executable was found*/
kLSAttributeNotFoundErr = -10662, /* An item attribute value could not be found with the specified name*/
@@ -77,6 +79,7 @@
kLSNoExecutableErr = -10827, /* The executable is missing*/
kLSNoClassicEnvironmentErr = -10828, /* The Classic environment was required but is not available*/
kLSMultipleSessionsNotSupportedErr = -10829, /* The app cannot run simultaneously in two different sessions*/
+
};
typedef CF_OPTIONS(OptionBits, LSRolesMask) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment