-
Notifications
You must be signed in to change notification settings - Fork 542
CoreFoundation iOS xcode26.0 b1
Alex Soto edited this page Jun 9, 2025
·
1 revision
#CoreFoundation.framework
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAttributedString.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAttributedString.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAttributedString.h 2025-04-19 03:01:09
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAttributedString.h 2025-06-01 23:44:11
@@ -154,6 +154,11 @@
Fills bidiLevels by applying the Unicode Bidi Algorithm (P, X, W, N, and I) to the characters in range. Returns true if the result is not uni-level LTR (in other words, needing further Bidi processing). baseDirection is NSWritingDirection (NSWritingDirectionNatural, NSWritingDirectionLeftToRight, and NSWritingDirectionRightToLeft). Understands NSWritingDirectionAttributeName values.
*/
CF_EXPORT bool CFAttributedStringGetBidiLevelsAndResolvedDirections(CFAttributedStringRef attributedString, CFRange range, int8_t baseDirection, uint8_t *bidiLevels, uint8_t *baseDirections);
+
+/*! @function CFAttributedStringGetStatisticalWritingDirections
+If baseDirection is not NSWritingDirectionNatural, result comes from CFAttributedStringGetBidiLevelsAndResolvedDirections; otherwise, it fills bidiLevels by applying a statistical approach (a paragraph is RTL if 40% or more of its words are RTL) to the characters in range. Returns true if the result is not uni-level LTR (in other words, needing further Bidi processing). baseDirection is NSWritingDirection (NSWritingDirectionNatural, NSWritingDirectionLeftToRight, and NSWritingDirectionRightToLeft). Understands NSWritingDirectionAttributeName values.
+*/
+CF_EXPORT bool CFAttributedStringGetStatisticalWritingDirections(CFAttributedStringRef attributedString, CFRange range, int8_t baseDirection, uint8_t *bidiLevels, uint8_t *baseDirections) API_AVAILABLE(macos(26.0), ios(26.0), watchos(26.0), tvos(26.0), visionos(26.0));
#endif
CF_EXTERN_C_END
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h 2025-05-01 06:02:53
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h 2025-05-23 02:41:16
@@ -88,19 +88,36 @@
// from <malloc/malloc.h>
typedef unsigned long long CFAllocatorTypeID;
-#if TARGET_OS_MAC && (defined(CF_BUILDING_CF) || defined(NSBUILDINGFOUNDATION))
+#if TARGET_OS_MAC
#include <malloc/_malloc.h>
#if defined(_MALLOC_TYPE_ENABLED) && _MALLOC_TYPE_ENABLED && defined(_MALLOC_TYPED)
- #define _CF_TYPED_ALLOC(override, type_param_pos) _MALLOC_TYPED(override, type_param_pos)
- #define CF_HAS_TYPED_ALLOCATOR 1
+ #if defined(CF_BUILDING_CF) || defined(NSBUILDINGFOUNDATION)
+ // Enable TMO internally to Foundation/CoreFoundation whenever the system allocator enables it
+ #define CF_ENABLE_TYPED_MEMORY_OPERATIONS 1
+ #elif defined(__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__) && \
+ ((TARGET_OS_IOS && __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ >= 190000) || \
+ (TARGET_OS_OSX && __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ >= 160000) || \
+ (TARGET_OS_VISION && __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ >= 30000) || \
+ (TARGET_OS_WATCH && __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ >= 120000) || \
+ (TARGET_OS_TV && __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ >= 190000))
+ // Only enable TMO if we're building with a deployment target >= iOS 19.0 (and aligned trains)
+ #define CF_ENABLE_TYPED_MEMORY_OPERATIONS 1
+ #endif
#endif /* defined(_MALLOC_TYPE_ENABLED) && _MALLOC_TYPE_ENABLED && defined(_MALLOC_TYPED) */
-#endif /* TARGET_OS_MAC && (defined(CF_BUILDING_CF) || defined(NSBUILDINGFOUNDATION)) */
+#endif /* TARGET_OS_MAC */
-#if !defined(_CF_TYPED_ALLOC)
-#define _CF_TYPED_ALLOC(override, type_param_pos)
-#define CF_HAS_TYPED_ALLOCATOR 0
+#if defined(CF_ENABLE_TYPED_MEMORY_OPERATIONS) && CF_ENABLE_TYPED_MEMORY_OPERATIONS
+ #define _CF_TYPED_ALLOC(override, type_param_pos) _MALLOC_TYPED(override, type_param_pos)
+ #define CF_HAS_TYPED_ALLOCATOR 1
+#else
+ #define _CF_TYPED_ALLOC(override, type_param_pos)
+ #define CF_HAS_TYPED_ALLOCATOR 0
#endif
+#if TARGET_OS_MAC
+ struct _malloc_zone_t;
+#endif
+
#if !defined(__MACTYPES__)
#if !defined(_OS_OSTYPES_H)
@@ -663,6 +680,9 @@
CF_EXPORT
CFAllocatorRef CFAllocatorCreate(CFAllocatorRef allocator, CFAllocatorContext *context);
+
+CF_EXPORT
+CFAllocatorRef CFAllocatorCreateWithZone(CFAllocatorRef allocator, struct _malloc_zone_t *zone) API_UNAVAILABLE(macos, ios, watchos, tvos, visionos);
/* Typed allocator interfaces
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h 2025-04-19 03:05:30
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h 2025-05-23 02:54:53
@@ -194,6 +194,17 @@
CF_EXPORT const CFCalendarIdentifier kCFISO8601Calendar API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
CF_EXPORT const CFCalendarIdentifier kCFIslamicTabularCalendar API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
CF_EXPORT const CFCalendarIdentifier kCFIslamicUmmAlQuraCalendar API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
+CF_EXPORT const CFCalendarIdentifier kCFBanglaCalendar API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
+CF_EXPORT const CFCalendarIdentifier kCFGujaratiCalendar API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
+CF_EXPORT const CFCalendarIdentifier kCFKannadaCalendar API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
+CF_EXPORT const CFCalendarIdentifier kCFMalayalamCalendar API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
+CF_EXPORT const CFCalendarIdentifier kCFMarathiCalendar API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
+CF_EXPORT const CFCalendarIdentifier kCFOdiaCalendar API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
+CF_EXPORT const CFCalendarIdentifier kCFTamilCalendar API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
+CF_EXPORT const CFCalendarIdentifier kCFTeluguCalendar API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
+CF_EXPORT const CFCalendarIdentifier kCFVikramCalendar API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
+CF_EXPORT const CFCalendarIdentifier kCFDangiCalendar API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
+CF_EXPORT const CFCalendarIdentifier kCFVietnameseCalendar API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
CF_EXTERN_C_END
CF_IMPLICIT_BRIDGING_DISABLED
diff -ruN /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h
--- /Applications/Xcode_16.4.0.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h 2025-04-19 01:08:40
+++ /Applications/Xcode_26.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h 2025-05-23 03:39:28
@@ -1210,6 +1210,14 @@
const CFStringRef kCFURLUbiquitousItemDownloadingStatusCurrent API_AVAILABLE(macos(10.9), ios(7.0), watchos(2.0), tvos(9.0));
/* there is a local version of this item and it is the most up-to-date version known to this device. */
+CF_EXPORT
+const CFStringRef kCFURLUbiquitousItemSupportedSyncControlsKey API_AVAILABLE(ios(26.0), macos(26.0), watchos(26.0), tvos(26.0));
+ /* returns the read-only value of the NSFileManagerSupportedSyncControls options. */
+
+CF_EXPORT
+const CFStringRef kCFURLUbiquitousItemIsSyncPausedKey API_AVAILABLE(ios(26.0), macos(26.0), watchos(26.0), tvos(26.0));
+ /* returns true if the sync of the item has been paused. */
+
typedef CF_OPTIONS(CFOptionFlags, CFURLBookmarkCreationOptions) {
kCFURLBookmarkCreationMinimalBookmarkMask = ( 1UL << 9 ), // creates bookmark data with "less" information, which may be smaller but still be able to resolve in certain ways
kCFURLBookmarkCreationSuitableForBookmarkFile = ( 1UL << 10 ), // include the properties required by CFURLWriteBookmarkDataToFile() in the bookmark data created