peachsim 0.1.1660 → 0.1.1673
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/cli/bridge-flow-runner.ts +6 -3
- package/cli/commands/box.ts +2 -0
- package/cli/commands/control.ts +56 -17
- package/cli/commands/coverage-swift.ts +291 -0
- package/cli/commands/coverage.ts +168 -24
- package/cli/commands/debug.ts +100 -9
- package/cli/commands/diagnose.ts +1 -19
- package/cli/commands/flow.ts +2 -2
- package/cli/commands/inspect/settle.ts +4 -2
- package/cli/commands/inspect/settling.ts +17 -14
- package/cli/commands/platform.ts +3 -0
- package/cli/commands/react.ts +3 -18
- package/cli/commands/screenshot.ts +1 -1
- package/cli/commands/screenshots-capture.ts +1 -1
- package/cli/current-sim.ts +21 -1
- package/cli/dev-build-freshness.ts +36 -2
- package/cli/drivers/playwright-provisioning.ts +1 -4
- package/cli/drivers/playwright.ts +15 -1
- package/cli/maestro-compare.ts +44 -14
- package/cli/main.ts +3 -0
- package/cli/material-symbol-fonts.ts +3 -100
- package/cli/output-redaction.ts +21 -6
- package/cli/parent-pid.ts +2 -2
- package/cli/scene-video.ts +1 -1
- package/cli/ui.ts +20 -0
- package/cli/ws-bridge.ts +26 -37
- package/detox/frame-identity.cjs +21 -0
- package/detox/frame-identity.d.cts +6 -0
- package/detox/index.ts +39 -33
- package/detox/jest-environment.cjs +4 -1
- package/detox/jest-setup-after-env.cjs +0 -4
- package/detox/navigation-lifecycle.ts +2 -2
- package/detox/proof-observer.ts +126 -0
- package/dist-lib/agent-daemon-client.cjs +29 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +10 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +2581 -27346
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +2752 -4982
- package/dist-lib/detox/jest-environment.cjs +4 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +2272 -27004
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +2801 -27484
- package/dist-lib/host/fetch-proxy-handler.cjs +7 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +394 -49
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +10 -1
- package/dist-lib/metro-production-bundle.mjs +12 -1
- package/dist-lib/metro.cjs +235 -13
- package/dist-lib/native-app-identity-project.cjs +123 -13
- package/dist-lib/native-app-identity-project.mjs +123 -13
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +21 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +76 -28
- package/dist-lib/public-origins-lib-static.json +1 -1
- package/dist-lib/public-origins-lib.json +590 -184
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +964 -0
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +18 -15
- package/dist-lib/sdk.mjs +18 -15
- package/dist-lib/skills.cjs +3900 -28409
- package/dist-lib/swift-compile.cjs +1227 -26292
- package/dist-lib/swift-compile.mjs +1156 -26221
- package/dist-lib/swift-package.cjs +34 -4
- package/dist-lib/swift-package.mjs +33 -4
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +52 -44
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +2317 -26955
- package/dist-lib/vite.cjs +132 -21
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/demo/demo-bundle-platform.d.ts +29 -0
- package/dist-types/packages/peach-engine/src/engine/app-font-registry.d.ts +13 -1
- package/dist-types/packages/peach-engine/src/engine/clipboardContract.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +73 -0
- package/dist-types/packages/peach-engine/src/engine/glass-material.d.ts +2 -3
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +21 -3
- package/dist-types/packages/peach-engine/src/engine/inspect-outline.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +0 -1
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +3 -1
- package/dist-types/packages/peach-engine/src/ios/aux-shell-animated-sources.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +68 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +11 -0
- package/dist-types/packages/peach-engine/src/render-worker/nativeSyncReplyContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-scene-schema.d.ts +10 -2
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +24 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/accessibilityBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/androidDateTimePickerBridgeContract.d.ts +41 -0
- package/dist-types/packages/peach-globals/src/appLifecycleBridgeContract.d.ts +22 -0
- package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +33 -0
- package/dist-types/packages/peach-globals/src/bridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/cameraBridgeContract.d.ts +94 -0
- package/dist-types/packages/peach-globals/src/captureBridgeContract.d.ts +36 -0
- package/dist-types/packages/peach-globals/src/clipboardBridgeContract.d.ts +45 -0
- package/dist-types/packages/peach-globals/src/compositorBridgeContract.d.ts +31 -0
- package/dist-types/packages/peach-globals/src/debugBridgeContract.d.ts +27 -0
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +29 -0
- package/dist-types/packages/peach-globals/src/eventBridgeContract.d.ts +200 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +462 -0
- package/dist-types/packages/peach-globals/src/hostStorageBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-globals/src/imagePickerBridgeContract.d.ts +47 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +47 -3343
- package/dist-types/packages/peach-globals/src/interactionBridgeContract.d.ts +21 -0
- package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +44 -0
- package/dist-types/packages/peach-globals/src/lockstepCaptureBridgeContract.d.ts +77 -0
- package/dist-types/packages/peach-globals/src/nativeViewContract.d.ts +28 -0
- package/dist-types/packages/peach-globals/src/navigationBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/nodeContract.d.ts +665 -0
- package/dist-types/packages/peach-globals/src/performanceBridgeContract.d.ts +100 -0
- package/dist-types/packages/peach-globals/src/permissionsBridgeContract.d.ts +152 -0
- package/dist-types/packages/peach-globals/src/photoLibraryBridgeContract.d.ts +36 -0
- package/dist-types/packages/peach-globals/src/portalBridgeContract.d.ts +9 -0
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +131 -0
- package/dist-types/packages/peach-globals/src/replayBridgeContract.d.ts +125 -0
- package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +37 -0
- package/dist-types/packages/peach-globals/src/settingsBridgeContract.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/shareSheetBridgeContract.d.ts +14 -0
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +82 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +28 -0
- package/dist-types/packages/peach-globals/src/speechSynthesisBridgeContract.d.ts +25 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +278 -0
- package/dist-types/packages/peach-globals/src/timelineBridgeContract.d.ts +58 -0
- package/dist-types/packages/peach-globals/src/videoBridgeContract.d.ts +80 -0
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +331 -0
- package/dist-types/packages/peach-globals/src/windowBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/dist-types/packages/peach-kit/src/ui/popover-placement.d.ts +3 -5
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsset.h +20 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVAsynchronousKeyValueLoading.h +15 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.h +5 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataFormat.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVMetadataItem.h +16 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Headers/AVTimedMetadataGroup.h +13 -0
- package/sdk/ios/System/Library/Frameworks/AVFoundation.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Conversion.h +19 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Convolution.h +11 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/Geometry.h +17 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Types.h +307 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Frameworks/vImage.framework/Headers/vImage_Utilities.h +174 -0
- package/sdk/ios/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.h +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/CoreData.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchRequest.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSFetchedResultsController.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h +10 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h +9 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectID.h +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectModel.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreCoordinator.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreRequest.h +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +221 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +316 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreImage.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTime.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CMTimeRange.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreMedia.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h +12 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/UTCoreTypes.h +1276 -0
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Headers/UTType.h +644 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h +20 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +1441 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageAnimation.h +106 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h +429 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h +665 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h +2504 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h +634 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIO.h +22 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h +18 -0
- package/sdk/ios/System/Library/Frameworks/ImageIO.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/MobileCoreServices.framework/Headers/MobileCoreServices.h +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewController.h +14 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SFSafariViewControllerConfiguration.h +9 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Headers/SafariServices.h +2 -0
- package/sdk/ios/System/Library/Frameworks/SafariServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecBase.h +3 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecItem.h +30 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +3 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStore.h +439 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreCopySpecific.h +216 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCDynamicStoreKey.h +267 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetwork.h +204 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConfiguration.h +1393 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkConnection.h +568 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCNetworkReachability.h +369 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferences.h +473 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesPath.h +179 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCPreferencesSetSpecific.h +95 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h +2395 -0
- package/sdk/ios/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h +184 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAppearance.h +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h +2 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +817 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Modules/module.modulemap +4 -0
- package/sdk/ios/usr/include/Availability.h +630 -0
- package/sdk/ios/usr/include/AvailabilityInternal.h +556 -0
- package/sdk/ios/usr/include/AvailabilityInternalLegacy.h +4346 -0
- package/sdk/ios/usr/include/AvailabilityVersions.h +547 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonDigest.h +130 -0
- package/sdk/ios/usr/include/MacTypes.h +3 -0
- package/sdk/ios/usr/include/TargetConditionals.h +14 -0
- package/sdk/ios/usr/include/__xlocale.h +41 -0
- package/sdk/ios/usr/include/_bounds.h +67 -0
- package/sdk/ios/usr/include/_ctermid.h +42 -0
- package/sdk/ios/usr/include/_mb_cur_max.h +39 -0
- package/sdk/ios/usr/include/_printf.h +38 -0
- package/sdk/ios/usr/include/_stdio.h +510 -0
- package/sdk/ios/usr/include/_types/_intmax_t.h +40 -0
- package/sdk/ios/usr/include/_types/_locale_t.h +38 -0
- package/sdk/ios/usr/include/_types/_uint16_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint32_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint64_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uint8_t.h +32 -0
- package/sdk/ios/usr/include/_types/_uintmax_t.h +40 -0
- package/sdk/ios/usr/include/_types.h +72 -0
- package/sdk/ios/usr/include/arm/_endian.h +105 -0
- package/sdk/ios/usr/include/arm/_mcontext.h +95 -0
- package/sdk/ios/usr/include/arm/_param.h +25 -0
- package/sdk/ios/usr/include/arm/_types.h +125 -0
- package/sdk/ios/usr/include/arm/endian.h +65 -0
- package/sdk/ios/usr/include/arm/signal.h +22 -0
- package/sdk/ios/usr/include/arm/types.h +110 -0
- package/sdk/ios/usr/include/asl.h +160 -0
- package/sdk/ios/usr/include/assert.h +14 -0
- package/sdk/ios/usr/include/dirent.h +224 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +114 -0
- package/sdk/ios/usr/include/dlfcn.h +16 -0
- package/sdk/ios/usr/include/errno.h +24 -0
- package/sdk/ios/usr/include/execinfo.h +11 -0
- package/sdk/ios/usr/include/fcntl.h +23 -0
- package/sdk/ios/usr/include/i386/_endian.h +105 -0
- package/sdk/ios/usr/include/i386/_mcontext.h +216 -0
- package/sdk/ios/usr/include/i386/_param.h +49 -0
- package/sdk/ios/usr/include/i386/_types.h +149 -0
- package/sdk/ios/usr/include/i386/endian.h +89 -0
- package/sdk/ios/usr/include/i386/signal.h +47 -0
- package/sdk/ios/usr/include/libkern/OSAtomic.h +51 -0
- package/sdk/ios/usr/include/libkern/OSAtomicDeprecated.h +1267 -0
- package/sdk/ios/usr/include/libkern/OSAtomicQueue.h +115 -0
- package/sdk/ios/usr/include/libkern/OSByteOrder.h +315 -0
- package/sdk/ios/usr/include/libkern/OSSpinLockDeprecated.h +212 -0
- package/sdk/ios/usr/include/libkern/_OSByteOrder.h +125 -0
- package/sdk/ios/usr/include/libkern/arm/_OSByteOrder.h +99 -0
- package/sdk/ios/usr/include/libkern/i386/_OSByteOrder.h +110 -0
- package/sdk/ios/usr/include/libkern/machine/OSByteOrder.h +147 -0
- package/sdk/ios/usr/include/limits.h +4 -0
- package/sdk/ios/usr/include/mach/arm/_structs.h +741 -0
- package/sdk/ios/usr/include/mach/boolean.h +4 -0
- package/sdk/ios/usr/include/mach/exception_types.h +40 -0
- package/sdk/ios/usr/include/mach/host_info.h +200 -0
- package/sdk/ios/usr/include/mach/i386/_structs.h +1316 -0
- package/sdk/ios/usr/include/mach/kern_return.h +61 -0
- package/sdk/ios/usr/include/mach/mach.h +16 -0
- package/sdk/ios/usr/include/mach/mach_error.h +10 -0
- package/sdk/ios/usr/include/mach/mach_host.h +18 -0
- package/sdk/ios/usr/include/mach/mach_init.h +15 -0
- package/sdk/ios/usr/include/mach/mach_port.h +11 -0
- package/sdk/ios/usr/include/mach/mach_time.h +14 -0
- package/sdk/ios/usr/include/mach/mach_types.h +20 -0
- package/sdk/ios/usr/include/mach/machine/_structs.h +40 -0
- package/sdk/ios/usr/include/mach/machine.h +144 -0
- package/sdk/ios/usr/include/mach/task.h +14 -0
- package/sdk/ios/usr/include/mach/task_info.h +23 -0
- package/sdk/ios/usr/include/mach/task_policy.h +29 -0
- package/sdk/ios/usr/include/mach/thread_act.h +12 -0
- package/sdk/ios/usr/include/mach/thread_info.h +32 -0
- package/sdk/ios/usr/include/mach/time_value.h +4 -0
- package/sdk/ios/usr/include/mach/vm_prot.h +8 -0
- package/sdk/ios/usr/include/mach/vm_region.h +43 -0
- package/sdk/ios/usr/include/mach/vm_statistics.h +491 -0
- package/sdk/ios/usr/include/mach/vm_types.h +8 -0
- package/sdk/ios/usr/include/mach-o/arch.h +21 -0
- package/sdk/ios/usr/include/mach-o/dyld.h +16 -0
- package/sdk/ios/usr/include/mach-o/dyld_images.h +71 -0
- package/sdk/ios/usr/include/mach-o/getsect.h +17 -0
- package/sdk/ios/usr/include/mach-o/loader.h +158 -0
- package/sdk/ios/usr/include/mach-o/nlist.h +38 -0
- package/sdk/ios/usr/include/mach-o/stab.h +33 -0
- package/sdk/ios/usr/include/mach-o/utils.h +10 -0
- package/sdk/ios/usr/include/machine/_endian.h +42 -0
- package/sdk/ios/usr/include/machine/_mcontext.h +39 -0
- package/sdk/ios/usr/include/machine/_param.h +39 -0
- package/sdk/ios/usr/include/machine/_types.h +39 -0
- package/sdk/ios/usr/include/machine/endian.h +42 -0
- package/sdk/ios/usr/include/machine/signal.h +39 -0
- package/sdk/ios/usr/include/machine/types.h +42 -0
- package/sdk/ios/usr/include/math.h +5 -0
- package/sdk/ios/usr/include/module.modulemap +4 -0
- package/sdk/ios/usr/include/net/if.h +20 -0
- package/sdk/ios/usr/include/net/if_dl.h +10 -0
- package/sdk/ios/usr/include/net/if_var.h +15 -0
- package/sdk/ios/usr/include/net/net_kev.h +100 -0
- package/sdk/ios/usr/include/netdb.h +5 -0
- package/sdk/ios/usr/include/netinet/in.h +670 -0
- package/sdk/ios/usr/include/netinet6/in6.h +676 -0
- package/sdk/ios/usr/include/notify.h +45 -0
- package/sdk/ios/usr/include/notify_keys.h +17 -0
- package/sdk/ios/usr/include/objc/NSObject.h +79 -0
- package/sdk/ios/usr/include/os/availability.h +140 -0
- package/sdk/ios/usr/include/os/lock.h +24 -0
- package/sdk/ios/usr/include/os/log.h +77 -0
- package/sdk/ios/usr/include/os/object.h +13 -0
- package/sdk/ios/usr/include/peach/darwin.h +6 -0
- package/sdk/ios/usr/include/peach/netdb.h +316 -0
- package/sdk/ios/usr/include/peach/pthread.h +19 -0
- package/sdk/ios/usr/include/pthread.h +4 -0
- package/sdk/ios/usr/include/secure/_common.h +45 -0
- package/sdk/ios/usr/include/secure/_stdio.h +130 -0
- package/sdk/ios/usr/include/signal.h +132 -0
- package/sdk/ios/usr/include/stdint.h +205 -0
- package/sdk/ios/usr/include/stdio.h +65 -0
- package/sdk/ios/usr/include/stdlib.h +17 -0
- package/sdk/ios/usr/include/string.h +8 -0
- package/sdk/ios/usr/include/sys/__endian.h +108 -0
- package/sdk/ios/usr/include/sys/_endian.h +152 -0
- package/sdk/ios/usr/include/sys/_posix_availability.h +73 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_attr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_types.h +120 -0
- package/sdk/ios/usr/include/sys/_symbol_aliasing.h +1093 -0
- package/sdk/ios/usr/include/sys/_types/_errno_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_filesec_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_gid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_in_addr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_in_port_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ino_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_int16_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int32_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int64_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_int8_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_intptr_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_iovec_t.h +35 -0
- package/sdk/ios/usr/include/sys/_types/_mode_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_null.h +54 -0
- package/sdk/ios/usr/include/sys/_types/_o_dsync.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_o_sync.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_off_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_pid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ptrdiff_t.h +56 -0
- package/sdk/ios/usr/include/sys/_types/_s_ifmt.h +74 -0
- package/sdk/ios/usr/include/sys/_types/_sa_family_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_seek_set.h +51 -0
- package/sdk/ios/usr/include/sys/_types/_sigaltstack.h +50 -0
- package/sdk/ios/usr/include/sys/_types/_sigset_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_size_t.h +56 -0
- package/sdk/ios/usr/include/sys/_types/_socklen_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ssize_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_timespec.h +38 -0
- package/sdk/ios/usr/include/sys/_types/_timeval32.h +3 -0
- package/sdk/ios/usr/include/sys/_types/_u_int16_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int32_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int64_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int8_t.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_ucontext.h +59 -0
- package/sdk/ios/usr/include/sys/_types/_uid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_uintptr_t.h +37 -0
- package/sdk/ios/usr/include/sys/_types/_va_list.h +49 -0
- package/sdk/ios/usr/include/sys/_types/_wchar_t.h +59 -0
- package/sdk/ios/usr/include/sys/_types.h +103 -0
- package/sdk/ios/usr/include/sys/appleapiopts.h +61 -0
- package/sdk/ios/usr/include/sys/cdefs.h +341 -0
- package/sdk/ios/usr/include/sys/constrained_ctypes.h +622 -0
- package/sdk/ios/usr/include/sys/dirent.h +141 -0
- package/sdk/ios/usr/include/sys/errno.h +271 -0
- package/sdk/ios/usr/include/sys/fcntl.h +649 -0
- package/sdk/ios/usr/include/sys/mman.h +273 -0
- package/sdk/ios/usr/include/sys/proc.h +65 -0
- package/sdk/ios/usr/include/sys/qos.h +61 -0
- package/sdk/ios/usr/include/sys/signal.h +394 -0
- package/sdk/ios/usr/include/sys/socket.h +752 -0
- package/sdk/ios/usr/include/sys/stdio.h +61 -0
- package/sdk/ios/usr/include/sys/sysctl.h +74 -0
- package/sdk/ios/usr/include/sys/syslimits.h +11 -0
- package/sdk/ios/usr/include/sys/time.h +5 -0
- package/sdk/ios/usr/include/sys/types.h +21 -0
- package/sdk/ios/usr/include/sys/ucontext.h +41 -0
- package/sdk/ios/usr/include/sys/xattr.h +50 -0
- package/sdk/ios/usr/include/time.h +2 -0
- package/sdk/ios/usr/include/unistd.h +3 -0
- package/sdk/ios/usr/include/uuid/uuid.h +19 -0
- package/sdk/ios/usr/include/xlocale/_stdio.h +85 -0
- package/sdk/ios/usr/lib/swift/CoreGraphics.swiftmodule/arm64-apple-ios-simulator.swiftinterface +8 -0
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +51 -0
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +20 -0
- package/sdk/ios/wasm/include/dlfcn.h +3 -0
- package/sdk/ios/wasm/include/netdb.h +4 -0
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/stdlib.h +3 -0
- package/sdk/ios/wasm/include/string.h +3 -0
- package/sdk/ios/wasm/include/sys/socket.h +7 -0
- package/sdk/ios/wasm/include/sys/types.h +4 -0
- package/sdk/ios/wasm/include/sys/ucontext.h +38 -0
- package/src/bridge-contract.ts +42 -0
- package/src/chromium-admission.ts +196 -0
- package/src/cli-runtime.ts +5 -5
- package/src/conformance-comparison-contract.ts +146 -0
- package/src/conformance-pixel-comparison.ts +327 -0
- package/src/device-catalog.ts +12 -3
- package/src/host/bridge-host.ts +6 -43
- package/src/launch-deadline.ts +74 -0
- package/src/material-symbol-fonts.ts +107 -0
- package/src/nitro-adapter.lock.json +3 -3
- package/src/profiles.ts +21 -0
- package/src/react-native-coverage/capability-reference-resolution.ts +402 -0
- package/src/react-native-coverage/capability-source-references.ts +1296 -0
- package/src/react-native-coverage/native-typescript-parser.ts +74 -0
- package/src/react-native-coverage/project-aliases.ts +207 -0
- package/src/react-native-coverage/verified-reach.ts +47 -0
- package/src/reap-browser.ts +1019 -0
- package/src/skills/builtin/a11y-review.ts +1 -1
- package/src/skills/builtin/perf-profile.ts +1 -1
- package/src/skills/builtin/screenshot-all.ts +1 -1
- package/src/skills/builtin/visual-diff.ts +1 -1
- package/src/swift-compile.ts +584 -226
- package/src/swift-compiler-digest.ts +6 -2
- package/src/swift-coverage/indexdump.ts +80 -0
- package/src/swift-coverage/indexing.ts +147 -0
- package/src/swift-coverage/package.ts +230 -0
- package/src/swift-coverage/provenance.ts +47 -0
- package/src/swift-coverage/reader.ts +81 -0
- package/src/swift-coverage/source.ts +252 -0
- package/src/swift-coverage/types.ts +58 -0
- package/src/swift-coverage/xcode-assets.ts +175 -0
- package/src/swift-coverage/xcode-bridging.ts +160 -0
- package/src/swift-coverage/xcode-packages.ts +251 -0
- package/src/swift-coverage/xcode-strings.ts +78 -0
- package/src/swift-coverage/xcode.ts +656 -0
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-distribution.ts +2 -1
- package/src/swift-host.ts +47 -4
- package/src/swift-objc-compile.ts +72 -97
- package/src/swift-objc-import.ts +238 -38
- package/src/swift-objc-metadata.ts +54 -7
- package/src/swift-objc-sdk-tree.ts +17 -0
- package/src/swift-objc-sdk.ts +27 -25677
- package/src/swift-objc-standin.ts +4 -2
- package/src/swift-package-manifest.ts +134 -13
- package/src/swift-package.ts +46 -4
- package/src/swift-standins.ts +2 -2
- package/src/swift-submit.ts +2 -1
- package/src/swift-toolchain.ts +72 -61
- package/src/swift-vite-lifetime.ts +42 -0
- package/src/swiftContract.ts +54 -0
- package/src/vite-plugin-one.ts +36 -15
- package/src/vite-plugin-swift.ts +21 -2
- package/src/worker-system-chunks.ts +3 -10
- package/src/xcode-header-search.ts +114 -0
- package/src/xcode-project.ts +108 -14
- package/detox/attempt-events.cjs +0 -884
- package/detox/attempt-events.d.cts +0 -113
- package/detox/motion-change.cjs +0 -524
- package/detox/motion-change.d.cts +0 -140
- package/detox/motion-leg-starts.cjs +0 -20
- package/detox/motion-leg-starts.d.cts +0 -8
- package/detox/proof-frame.cjs +0 -190
- package/detox/record-block-execution.cjs +0 -78
|
@@ -0,0 +1,1441 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
#include <stdio.h>
|
|
3
|
+
#include <float.h>
|
|
4
|
+
#include <stdint.h>
|
|
5
|
+
#include <stddef.h>
|
|
6
|
+
#include <stdbool.h>
|
|
7
|
+
#include <stdarg.h>
|
|
8
|
+
#include <stdlib.h>
|
|
9
|
+
#include <string.h>
|
|
10
|
+
#include <time.h>
|
|
11
|
+
#include <limits.h>
|
|
12
|
+
#include <assert.h>
|
|
13
|
+
#include <unistd.h>
|
|
14
|
+
#include <TargetConditionals.h>
|
|
15
|
+
#import <objc/NSObject.h>
|
|
16
|
+
#import <dispatch/dispatch.h>
|
|
17
|
+
#import <CoreFoundation/CoreFoundation.h>
|
|
18
|
+
@class NSCharacterSet;
|
|
19
|
+
@class NSURLSessionConfiguration, NSOperation, NSURLCache, NSCachedURLResponse, NSBlockOperation, NSCache;
|
|
20
|
+
#import <CoreGraphics/CoreGraphics.h>
|
|
21
|
+
|
|
22
|
+
@class NSPropertyListSerialization;
|
|
23
|
+
@class NSKeyedUnarchiver;
|
|
24
|
+
@class NSException;
|
|
25
|
+
typedef void NSUncaughtExceptionHandler(NSException * _Nonnull exception);
|
|
26
|
+
#if !defined(NS_SUPPRESS_MIN_MAX_ABS)
|
|
27
|
+
#if (defined(__GNUC__) || defined(__clang__)) && !defined(__STRICT_ANSI__)
|
|
28
|
+
#if __clang__
|
|
29
|
+
#define __NSX_PASTE__(A,B) A##B
|
|
30
|
+
#if !defined(MIN)
|
|
31
|
+
#define __NSMIN_IMPL__(A,B,L) ({ __typeof__(A) __NSX_PASTE__(__a,L) = (A); __typeof__(B) __NSX_PASTE__(__b,L) = (B); (__NSX_PASTE__(__a,L) < __NSX_PASTE__(__b,L)) ? __NSX_PASTE__(__a,L) : __NSX_PASTE__(__b,L); })
|
|
32
|
+
#define MIN(A,B) __NSMIN_IMPL__(A,B,__COUNTER__)
|
|
33
|
+
#endif
|
|
34
|
+
#else
|
|
35
|
+
#if !defined(MIN)
|
|
36
|
+
#define MIN(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __a : __b; })
|
|
37
|
+
#endif
|
|
38
|
+
#endif
|
|
39
|
+
#else
|
|
40
|
+
#if !defined(MIN)
|
|
41
|
+
#define MIN(A,B) ((A) < (B) ? (A) : (B))
|
|
42
|
+
#endif
|
|
43
|
+
#endif
|
|
44
|
+
#endif
|
|
45
|
+
#if !defined(NS_SUPPRESS_MIN_MAX_ABS)
|
|
46
|
+
#if (defined(__GNUC__) || defined(__clang__)) && !defined(__STRICT_ANSI__)
|
|
47
|
+
#if __clang__
|
|
48
|
+
#if !defined(MAX)
|
|
49
|
+
#define __NSMAX_IMPL__(A,B,L) ({ __typeof__(A) __NSX_PASTE__(__a,L) = (A); __typeof__(B) __NSX_PASTE__(__b,L) = (B); (__NSX_PASTE__(__a,L) < __NSX_PASTE__(__b,L)) ? __NSX_PASTE__(__b,L) : __NSX_PASTE__(__a,L); })
|
|
50
|
+
#define MAX(A,B) __NSMAX_IMPL__(A,B,__COUNTER__)
|
|
51
|
+
#endif
|
|
52
|
+
#else
|
|
53
|
+
#if !defined(MAX)
|
|
54
|
+
#define MAX(A,B) ({ __typeof__(A) __a = (A); __typeof__(B) __b = (B); __a < __b ? __b : __a; })
|
|
55
|
+
#endif
|
|
56
|
+
#endif
|
|
57
|
+
#else
|
|
58
|
+
#if !defined(MAX)
|
|
59
|
+
#define MAX(A,B) ((A) > (B) ? (A) : (B))
|
|
60
|
+
#endif
|
|
61
|
+
#endif
|
|
62
|
+
#endif
|
|
63
|
+
#define FOUNDATION_EXPORT extern
|
|
64
|
+
#define FOUNDATION_EXTERN extern
|
|
65
|
+
#define __nullable _Nullable
|
|
66
|
+
#define __nonnull _Nonnull
|
|
67
|
+
#define __null_unspecified _Null_unspecified
|
|
68
|
+
#define FOUNDATION_STATIC_INLINE static inline
|
|
69
|
+
#define NS_INLINE static inline
|
|
70
|
+
#define CF_EXPORT extern
|
|
71
|
+
#define CF_INLINE static inline
|
|
72
|
+
#define OBJC_EXPORT extern
|
|
73
|
+
#define NS_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
|
|
74
|
+
#define NS_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
|
|
75
|
+
#define CF_ASSUME_NONNULL_BEGIN _Pragma("clang assume_nonnull begin")
|
|
76
|
+
#define CF_ASSUME_NONNULL_END _Pragma("clang assume_nonnull end")
|
|
77
|
+
#define NS_HEADER_AUDIT_BEGIN(...) _Pragma("clang assume_nonnull begin")
|
|
78
|
+
#define NS_HEADER_AUDIT_END(...) _Pragma("clang assume_nonnull end")
|
|
79
|
+
#define CF_EXTERN_C_BEGIN
|
|
80
|
+
#define CF_EXTERN_C_END
|
|
81
|
+
#include <sys/cdefs.h>
|
|
82
|
+
|
|
83
|
+
#define NS_ENUM(...) CF_ENUM(__VA_ARGS__)
|
|
84
|
+
#define NS_CLOSED_ENUM(_type, _name) CF_CLOSED_ENUM(_type, _name)
|
|
85
|
+
#define NS_OPTIONS(_type, _name) CF_OPTIONS(_type, _name)
|
|
86
|
+
#define __PEACH_NAMED_ERROR_ENUM(_domain, _name) enum _name : NSInteger _name; enum __attribute__((ns_error_domain(_domain))) _name : NSInteger
|
|
87
|
+
#define __PEACH_ANON_ERROR_ENUM(_domain) enum __attribute__((ns_error_domain(_domain))) : NSInteger
|
|
88
|
+
#define NS_ERROR_ENUM(...) __PEACH_ENUM_GET(__VA_ARGS__, __PEACH_NAMED_ERROR_ENUM, __PEACH_ANON_ERROR_ENUM, )(__VA_ARGS__)
|
|
89
|
+
#define NS_ENUM_AVAILABLE(...)
|
|
90
|
+
#define NS_ENUM_AVAILABLE_IOS(...)
|
|
91
|
+
#define NS_ENUM_DEPRECATED_IOS(...)
|
|
92
|
+
#define NS_ENUM_DEPRECATED(...)
|
|
93
|
+
#define _NS_TYPED_ENUM __attribute__((swift_wrapper(enum)))
|
|
94
|
+
#define _NS_TYPED_EXTENSIBLE_ENUM __attribute__((swift_wrapper(struct)))
|
|
95
|
+
#define NS_TYPED_ENUM _NS_TYPED_ENUM
|
|
96
|
+
#define NS_TYPED_EXTENSIBLE_ENUM _NS_TYPED_EXTENSIBLE_ENUM
|
|
97
|
+
#define NS_STRING_ENUM _NS_TYPED_ENUM
|
|
98
|
+
#define NS_EXTENSIBLE_STRING_ENUM _NS_TYPED_EXTENSIBLE_ENUM
|
|
99
|
+
#define CF_TYPED_ENUM _NS_TYPED_ENUM
|
|
100
|
+
#define CF_TYPED_EXTENSIBLE_ENUM _NS_TYPED_EXTENSIBLE_ENUM
|
|
101
|
+
#define CF_STRING_ENUM _NS_TYPED_ENUM
|
|
102
|
+
#define CF_EXTENSIBLE_STRING_ENUM _NS_TYPED_EXTENSIBLE_ENUM
|
|
103
|
+
#define NS_SWIFT_NAME(_name) __attribute__((swift_name(#_name)))
|
|
104
|
+
#define CF_SWIFT_NAME(_name) __attribute__((swift_name(#_name)))
|
|
105
|
+
#define NS_SWIFT_UNAVAILABLE(_msg) __attribute__((availability(swift, unavailable, message=_msg)))
|
|
106
|
+
#define CF_SWIFT_UNAVAILABLE(_msg) __attribute__((availability(swift, unavailable, message=_msg)))
|
|
107
|
+
#define NS_REFINED_FOR_SWIFT __attribute__((swift_private))
|
|
108
|
+
#define CF_REFINED_FOR_SWIFT __attribute__((swift_private))
|
|
109
|
+
#define NS_SWIFT_NOTHROW __attribute__((swift_error(none)))
|
|
110
|
+
#define NS_SWIFT_ASYNC(_index) __attribute__((swift_async(not_swift_private, _index)))
|
|
111
|
+
#define NS_REFINED_FOR_SWIFT_ASYNC(_index) __attribute__((swift_async(swift_private, _index)))
|
|
112
|
+
#define NS_SWIFT_DISABLE_ASYNC __attribute__((swift_async(none)))
|
|
113
|
+
#define NS_SWIFT_ASYNC_NAME(_name) __attribute__((swift_async_name(#_name)))
|
|
114
|
+
#define NS_SWIFT_ASYNC_NOTHROW __attribute__((swift_async_error(none)))
|
|
115
|
+
#define NS_SWIFT_ASYNC_THROWS_ON_TRUE(_index) __attribute__((swift_async_error(nonzero_argument, _index)))
|
|
116
|
+
#define NS_SWIFT_ASYNC_THROWS_ON_FALSE(_index) __attribute__((swift_async_error(zero_argument, _index)))
|
|
117
|
+
#define NS_SWIFT_MAIN_ACTOR __attribute__((swift_attr("@MainActor")))
|
|
118
|
+
#define NS_SWIFT_UI_ACTOR NS_SWIFT_MAIN_ACTOR
|
|
119
|
+
#define NS_SWIFT_NONISOLATED __attribute__((swift_attr("nonisolated")))
|
|
120
|
+
#define NS_SWIFT_SENDABLE __attribute__((swift_attr("@Sendable")))
|
|
121
|
+
#define NS_SWIFT_NONSENDABLE __attribute__((swift_attr("@_nonSendable")))
|
|
122
|
+
#define NS_SWIFT_UNAVAILABLE_FROM_ASYNC(_msg)
|
|
123
|
+
#define NS_SWIFT_BRIDGED_TYPEDEF __attribute__((swift_bridged_typedef))
|
|
124
|
+
#define CF_SWIFT_BRIDGED_TYPEDEF __attribute__((swift_bridged_typedef))
|
|
125
|
+
#define NS_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
|
|
126
|
+
#define NS_UNAVAILABLE __attribute__((unavailable))
|
|
127
|
+
#define UNAVAILABLE_ATTRIBUTE __attribute__((unavailable))
|
|
128
|
+
#define NS_AUTOMATED_REFCOUNT_UNAVAILABLE
|
|
129
|
+
#define DEPRECATED_ATTRIBUTE __attribute__((deprecated))
|
|
130
|
+
#define DEPRECATED_MSG_ATTRIBUTE(_msg) __attribute__((deprecated(_msg)))
|
|
131
|
+
#define NS_REQUIRES_SUPER __attribute__((objc_requires_super))
|
|
132
|
+
#define NS_REQUIRES_NIL_TERMINATION __attribute__((sentinel(0, 1)))
|
|
133
|
+
#define NS_NOESCAPE __attribute__((noescape))
|
|
134
|
+
#define CF_NOESCAPE __attribute__((noescape))
|
|
135
|
+
#define NS_RETURNS_RETAINED __attribute__((ns_returns_retained))
|
|
136
|
+
#define NS_RETURNS_NOT_RETAINED __attribute__((ns_returns_not_retained))
|
|
137
|
+
#define NS_RETURNS_INNER_POINTER __attribute__((objc_returns_inner_pointer))
|
|
138
|
+
#define CF_RETURNS_RETAINED __attribute__((cf_returns_retained))
|
|
139
|
+
#define CF_RETURNS_NOT_RETAINED __attribute__((cf_returns_not_retained))
|
|
140
|
+
#define NS_FORMAT_FUNCTION(_f, _a) __attribute__((format(__NSString__, _f, _a)))
|
|
141
|
+
#define NS_FORMAT_ARGUMENT(_a) __attribute__((format_arg(_a)))
|
|
142
|
+
#define NS_VALID_UNTIL_END_OF_SCOPE
|
|
143
|
+
#define NS_ROOT_CLASS __attribute__((objc_root_class))
|
|
144
|
+
#define OBJC_ROOT_CLASS __attribute__((objc_root_class))
|
|
145
|
+
#define NS_REQUIRES_PROPERTY_DEFINITIONS
|
|
146
|
+
#define NS_SWIFT_SENDABLE_CLASS
|
|
147
|
+
#define NS_CLASS_AVAILABLE(...)
|
|
148
|
+
#define NS_CLASS_AVAILABLE_IOS(...)
|
|
149
|
+
#define NS_CLASS_DEPRECATED_IOS(...)
|
|
150
|
+
#define NS_AVAILABLE(_mac, _ios) __attribute__((availability(ios,introduced=_ios)))
|
|
151
|
+
#define NS_AVAILABLE_IOS(...)
|
|
152
|
+
#define NS_AVAILABLE_MAC(...)
|
|
153
|
+
#define NS_DEPRECATED(...)
|
|
154
|
+
#define NS_DEPRECATED_IOS(...)
|
|
155
|
+
#define NS_DEPRECATED_MAC(...)
|
|
156
|
+
#define NS_EXTENSION_UNAVAILABLE(...)
|
|
157
|
+
#define NS_EXTENSION_UNAVAILABLE_IOS(...)
|
|
158
|
+
#include <os/availability.h>
|
|
159
|
+
#define __API_AVAILABLE(...)
|
|
160
|
+
#define __API_UNAVAILABLE(...)
|
|
161
|
+
#define __API_DEPRECATED(...)
|
|
162
|
+
#define __OSX_AVAILABLE(...)
|
|
163
|
+
#define __IOS_AVAILABLE(...)
|
|
164
|
+
#define __TVOS_AVAILABLE(...)
|
|
165
|
+
#define __WATCHOS_AVAILABLE(...)
|
|
166
|
+
#define __IOS_PROHIBITED
|
|
167
|
+
#define __TVOS_PROHIBITED
|
|
168
|
+
#define __WATCHOS_PROHIBITED
|
|
169
|
+
#define __OSX_AVAILABLE_STARTING(...)
|
|
170
|
+
#define __OSX_AVAILABLE_BUT_DEPRECATED(...)
|
|
171
|
+
#define __OSX_AVAILABLE_BUT_DEPRECATED_MSG(...)
|
|
172
|
+
#define OBJC_AVAILABLE(...)
|
|
173
|
+
#define OBJC_SWIFT_UNAVAILABLE(_msg) __attribute__((availability(swift, unavailable, message=_msg)))
|
|
174
|
+
#define CF_AVAILABLE(...)
|
|
175
|
+
#define CF_AVAILABLE_IOS(...)
|
|
176
|
+
#define CF_DEPRECATED(...)
|
|
177
|
+
#define CF_BRIDGED_TYPE(_t) __attribute__((objc_bridge(_t)))
|
|
178
|
+
#define CF_BRIDGED_MUTABLE_TYPE(_t) __attribute__((objc_bridge_mutable(_t)))
|
|
179
|
+
#define CF_RELATED_TYPE(...)
|
|
180
|
+
#define CF_IMPLICIT_BRIDGING_ENABLED _Pragma("clang arc_cf_code_audited begin")
|
|
181
|
+
#define CF_IMPLICIT_BRIDGING_DISABLED _Pragma("clang arc_cf_code_audited end")
|
|
182
|
+
#define NS_NONATOMIC_IOSONLY nonatomic
|
|
183
|
+
#define NS_UNAVAILABLE_INIT
|
|
184
|
+
#define NSIntegerMax LONG_MAX
|
|
185
|
+
#define NSIntegerMin LONG_MIN
|
|
186
|
+
#define NSUIntegerMax ULONG_MAX
|
|
187
|
+
#define NSNotFound NSIntegerMax
|
|
188
|
+
|
|
189
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
190
|
+
|
|
191
|
+
typedef double NSTimeInterval NS_SWIFT_NAME(TimeInterval);
|
|
192
|
+
#define NSTimeIntervalSince1970 978307200.0
|
|
193
|
+
typedef uint16_t unichar;
|
|
194
|
+
typedef NSUInteger NSStringEncoding;
|
|
195
|
+
NS_ENUM(NSStringEncoding) {
|
|
196
|
+
NSASCIIStringEncoding = 1,
|
|
197
|
+
NSUTF8StringEncoding = 4,
|
|
198
|
+
NSUnicodeStringEncoding = 10,
|
|
199
|
+
NSUTF16StringEncoding = NSUnicodeStringEncoding,
|
|
200
|
+
NSUTF16BigEndianStringEncoding = 0x90000100
|
|
201
|
+
};
|
|
202
|
+
typedef struct _NSRange { NSUInteger location; NSUInteger length; } NSRange;
|
|
203
|
+
typedef NSRange *NSRangePointer;
|
|
204
|
+
NS_INLINE NSRange NSMakeRange(NSUInteger loc, NSUInteger len) {
|
|
205
|
+
NSRange r;
|
|
206
|
+
r.location = loc;
|
|
207
|
+
r.length = len;
|
|
208
|
+
return r;
|
|
209
|
+
}
|
|
210
|
+
typedef NS_ENUM(NSInteger, NSComparisonResult) { NSOrderedAscending = -1L, NSOrderedSame, NSOrderedDescending } NS_SWIFT_NAME(ComparisonResult);
|
|
211
|
+
typedef NSComparisonResult (^NSComparator)(id obj1, id obj2);
|
|
212
|
+
typedef NS_OPTIONS(NSUInteger, NSEnumerationOptions) { NSEnumerationConcurrent = (1UL << 0), NSEnumerationReverse = (1UL << 1) };
|
|
213
|
+
typedef NS_OPTIONS(NSUInteger, NSStringCompareOptions) {
|
|
214
|
+
NSCaseInsensitiveSearch = 1,
|
|
215
|
+
NSLiteralSearch = 2,
|
|
216
|
+
NSBackwardsSearch = 4,
|
|
217
|
+
NSAnchoredSearch = 8,
|
|
218
|
+
NSNumericSearch = 64,
|
|
219
|
+
NSDiacriticInsensitiveSearch __attribute__((availability(ios,introduced=2.0))) = 128,
|
|
220
|
+
NSWidthInsensitiveSearch __attribute__((availability(ios,introduced=2.0))) = 256,
|
|
221
|
+
NSForcedOrderingSearch __attribute__((availability(ios,introduced=2.0))) = 512,
|
|
222
|
+
NSRegularExpressionSearch __attribute__((availability(ios,introduced=3.2))) = 1024
|
|
223
|
+
};
|
|
224
|
+
typedef NS_OPTIONS(NSUInteger, NSSortOptions) { NSSortConcurrent = (1UL << 0), NSSortStable = (1UL << 4) };
|
|
225
|
+
typedef NS_ENUM(NSInteger, NSQualityOfService) { NSQualityOfServiceUserInteractive = 0x21, NSQualityOfServiceUserInitiated = 0x19, NSQualityOfServiceUtility = 0x11, NSQualityOfServiceBackground = 0x09, NSQualityOfServiceDefault = -1 } NS_SWIFT_NAME(QualityOfService);
|
|
226
|
+
|
|
227
|
+
@class NSArray<ObjectType>, NSDictionary<KeyType, ObjectType>, NSError, NSURL, NSData, NSCoder, NSSet<ObjectType>, NSEnumerator<ObjectType>, NSLocale, NSOperationQueue, NSCharacterSet;
|
|
228
|
+
|
|
229
|
+
typedef struct _NSZone NSZone;
|
|
230
|
+
@protocol NSCopying
|
|
231
|
+
- (id)copyWithZone:(nullable struct _NSZone *)zone;
|
|
232
|
+
@end
|
|
233
|
+
@protocol NSMutableCopying
|
|
234
|
+
- (id)mutableCopyWithZone:(nullable struct _NSZone *)zone;
|
|
235
|
+
@end
|
|
236
|
+
@protocol NSCoding
|
|
237
|
+
- (void)encodeWithCoder:(NSCoder *)coder;
|
|
238
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)coder;
|
|
239
|
+
@end
|
|
240
|
+
@protocol NSSecureCoding <NSCoding>
|
|
241
|
+
@property (class, readonly) BOOL supportsSecureCoding;
|
|
242
|
+
@end
|
|
243
|
+
typedef struct { unsigned long state; id __unsafe_unretained _Nullable * _Nullable itemsPtr; unsigned long * _Nullable mutationsPtr; unsigned long extra[5]; } NSFastEnumerationState;
|
|
244
|
+
@protocol NSFastEnumeration
|
|
245
|
+
- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id __unsafe_unretained _Nullable [_Nonnull])buffer count:(NSUInteger)len;
|
|
246
|
+
@end
|
|
247
|
+
|
|
248
|
+
__attribute__((swift_bridge("Swift.String")))
|
|
249
|
+
@interface NSString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
|
|
250
|
+
- (NSArray<NSString *> *)componentsSeparatedByCharactersInSet:(NSCharacterSet *)separator __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
251
|
+
@property (readonly) double doubleValue;
|
|
252
|
+
- (BOOL)canBeConvertedToEncoding:(NSStringEncoding)encoding;
|
|
253
|
+
@property (readonly) NSUInteger length;
|
|
254
|
+
@property (readonly) NSInteger integerValue;
|
|
255
|
+
@property (readonly) const char *fileSystemRepresentation NS_RETURNS_INNER_POINTER;
|
|
256
|
+
@property (nullable, readonly) const char *UTF8String NS_RETURNS_INNER_POINTER;
|
|
257
|
+
@property (nullable, readonly, copy) NSString *stringByRemovingPercentEncoding;
|
|
258
|
+
@property (readonly) BOOL boolValue __attribute__((availability(ios,introduced=2.0)));
|
|
259
|
+
@property (readonly) int intValue;
|
|
260
|
+
- (nullable const char *)cStringUsingEncoding:(NSStringEncoding)encoding NS_RETURNS_INNER_POINTER;
|
|
261
|
+
+ (nullable instancetype)stringWithCString:(const char *)cString encoding:(NSStringEncoding)enc NS_FORMAT_ARGUMENT(1);
|
|
262
|
+
- (NSComparisonResult)localizedStandardCompare:(NSString *)string __attribute__((availability(ios,introduced=4.0)));
|
|
263
|
+
- (unichar)characterAtIndex:(NSUInteger)index;
|
|
264
|
+
- (BOOL)isEqualToString:(NSString *)aString;
|
|
265
|
+
- (BOOL)containsString:(NSString *)str;
|
|
266
|
+
- (BOOL)hasPrefix:(NSString *)str;
|
|
267
|
+
- (BOOL)hasSuffix:(NSString *)str;
|
|
268
|
+
- (NSString *)substringToIndex:(NSUInteger)to;
|
|
269
|
+
- (NSString *)stringByAppendingFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
|
|
270
|
+
@property (readonly, copy) NSString *stringByDeletingPathExtension;
|
|
271
|
+
@property (readonly, copy) NSString *pathExtension;
|
|
272
|
+
- (nullable NSString *)stringByAppendingPathExtension:(NSString *)str;
|
|
273
|
+
@property (readonly, copy) NSString *stringByDeletingLastPathComponent;
|
|
274
|
+
- (nullable instancetype)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding freeWhenDone:(BOOL)freeBuffer;
|
|
275
|
+
- (instancetype)initWithFormat:(NSString *)format arguments:(va_list)argList NS_FORMAT_FUNCTION(1,0);
|
|
276
|
+
@property (readonly, copy) NSString *lastPathComponent;
|
|
277
|
+
- (NSRange)rangeOfString:(NSString *)searchString;
|
|
278
|
+
- (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask;
|
|
279
|
+
- (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch;
|
|
280
|
+
- (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch locale:(nullable NSLocale *)locale __attribute__((availability(ios,introduced=2.0)));
|
|
281
|
+
@property (readonly, copy) NSString *lowercaseString;
|
|
282
|
+
@property (readonly, copy) NSString *uppercaseString;
|
|
283
|
+
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet;
|
|
284
|
+
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet options:(NSStringCompareOptions)mask;
|
|
285
|
+
- (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet options:(NSStringCompareOptions)mask range:(NSRange)rangeOfReceiverToSearch;
|
|
286
|
+
+ (instancetype)string;
|
|
287
|
+
- (NSString *)stringByAppendingString:(NSString *)aString;
|
|
288
|
+
- (NSString *)stringByReplacingOccurrencesOfString:(NSString *)target withString:(NSString *)replacement;
|
|
289
|
+
- (instancetype)initWithString:(NSString *)aString NS_FORMAT_ARGUMENT(1);
|
|
290
|
+
- (instancetype)initWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
|
|
291
|
+
+ (instancetype)stringWithString:(NSString *)string NS_FORMAT_ARGUMENT(1);
|
|
292
|
+
- (NSArray<NSString *> *)componentsSeparatedByString:(NSString *)separator;
|
|
293
|
+
- (NSString *)stringByAppendingPathComponent:(NSString *)str;
|
|
294
|
+
- (nullable instancetype)initWithData:(NSData *)data encoding:(NSStringEncoding)encoding;
|
|
295
|
+
- (nullable NSData *)dataUsingEncoding:(NSStringEncoding)encoding;
|
|
296
|
+
- (nullable instancetype)initWithBytes:(const void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding;
|
|
297
|
+
+ (nullable instancetype)stringWithUTF8String:(const char *)nullTerminatedCString NS_FORMAT_ARGUMENT(1);
|
|
298
|
+
+ (instancetype)stringWithFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
|
|
299
|
+
- (instancetype)init NS_DESIGNATED_INITIALIZER;
|
|
300
|
+
- (nullable instancetype)initWithCoder:(NSCoder *)coder NS_DESIGNATED_INITIALIZER;
|
|
301
|
+
@end
|
|
302
|
+
@interface NSString (NSURLUtilities)
|
|
303
|
+
- (nullable NSString *)stringByAddingPercentEncodingWithAllowedCharacters:(NSCharacterSet *)allowedCharacters __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=7.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
304
|
+
@end
|
|
305
|
+
@interface NSString (NSStringExtensionMethods)
|
|
306
|
+
- (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask;
|
|
307
|
+
@property (readonly) float floatValue;
|
|
308
|
+
- (nullable instancetype)initWithUTF8String:(const char *)nullTerminatedCString NS_FORMAT_ARGUMENT(1);
|
|
309
|
+
- (NSString *)substringWithRange:(NSRange)range;
|
|
310
|
+
- (NSRange)rangeOfComposedCharacterSequencesForRange:(NSRange)range __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
311
|
+
@end
|
|
312
|
+
@interface NSMutableString : NSString
|
|
313
|
+
- (void)appendString:(NSString *)aString;
|
|
314
|
+
- (void)appendFormat:(NSString *)format, ... NS_FORMAT_FUNCTION(1,2);
|
|
315
|
+
+ (NSMutableString *)stringWithCapacity:(NSUInteger)capacity;
|
|
316
|
+
@end
|
|
317
|
+
NS_SWIFT_UNAVAILABLE("Use String or NSString instead.")
|
|
318
|
+
@interface NSSimpleCString : NSString {
|
|
319
|
+
@package
|
|
320
|
+
char *bytes;
|
|
321
|
+
int numBytes;
|
|
322
|
+
#if __LP64__
|
|
323
|
+
int _unused;
|
|
324
|
+
#endif
|
|
325
|
+
}
|
|
326
|
+
@end
|
|
327
|
+
NS_SWIFT_UNAVAILABLE("Use String or NSString instead.")
|
|
328
|
+
@interface NSConstantString : NSSimpleCString
|
|
329
|
+
@end
|
|
330
|
+
@interface NSAttributedString : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
|
|
331
|
+
@property (readonly, copy) NSString *string;
|
|
332
|
+
@end
|
|
333
|
+
@interface NSMutableAttributedString : NSAttributedString
|
|
334
|
+
@end
|
|
335
|
+
typedef NSString *NSAttributedStringKey NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(NSAttributedString.Key);
|
|
336
|
+
|
|
337
|
+
__attribute__((swift_bridge("Swift.Array")))
|
|
338
|
+
@interface NSArray<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
|
|
339
|
+
- (NSArray<ObjectType> *)arrayByAddingObjectsFromArray:(NSArray<ObjectType> *)otherArray;
|
|
340
|
+
- (NSUInteger)indexOfObjectIdenticalTo:(ObjectType)anObject;
|
|
341
|
+
+ (instancetype)arrayWithObject:(ObjectType)anObject;
|
|
342
|
+
- (NSEnumerator<ObjectType> *)reverseObjectEnumerator;
|
|
343
|
+
@property (readonly) NSUInteger count;
|
|
344
|
+
@property (nullable, nonatomic, readonly) ObjectType firstObject;
|
|
345
|
+
@property (nullable, nonatomic, readonly) ObjectType lastObject;
|
|
346
|
+
- (ObjectType)objectAtIndex:(NSUInteger)index;
|
|
347
|
+
- (NSString *)componentsJoinedByString:(NSString *)separator;
|
|
348
|
+
- (ObjectType)objectAtIndexedSubscript:(NSUInteger)idx;
|
|
349
|
+
- (BOOL)containsObject:(ObjectType)anObject;
|
|
350
|
+
- (NSArray<ObjectType> *)subarrayWithRange:(NSRange)range;
|
|
351
|
+
- (NSArray<ObjectType> *)sortedArrayUsingComparator:(NSComparator NS_NOESCAPE)cmptr;
|
|
352
|
+
- (NSArray<ObjectType> *)sortedArrayUsingSelector:(SEL)comparator;
|
|
353
|
+
- (NSEnumerator<ObjectType> *)objectEnumerator;
|
|
354
|
+
- (instancetype)initWithObjects:(ObjectType)firstObj, ... NS_REQUIRES_NIL_TERMINATION;
|
|
355
|
+
+ (instancetype)array;
|
|
356
|
+
+ (instancetype)arrayWithObjects:(const ObjectType _Nonnull [_Nonnull])objects count:(NSUInteger)cnt;
|
|
357
|
+
+ (instancetype)arrayWithArray:(NSArray<ObjectType> *)array;
|
|
358
|
+
+ (instancetype)arrayWithObjects:(ObjectType)firstObj, ... NS_REQUIRES_NIL_TERMINATION;
|
|
359
|
+
- (instancetype)initWithArray:(NSArray<ObjectType> *)array copyItems:(BOOL)flag;
|
|
360
|
+
@end
|
|
361
|
+
@interface NSArray<ObjectType> (NSExtendedArray)
|
|
362
|
+
- (void)enumerateObjectsUsingBlock:(void (NS_NOESCAPE ^)(ObjectType obj, NSUInteger idx, BOOL *stop))block __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
363
|
+
@end
|
|
364
|
+
@interface NSMutableArray<ObjectType> : NSArray<ObjectType>
|
|
365
|
+
- (void)removeObjectIdenticalTo:(ObjectType)anObject;
|
|
366
|
+
- (void)removeObjectIdenticalTo:(ObjectType)anObject inRange:(NSRange)range;
|
|
367
|
+
+ (instancetype)arrayWithCapacity:(NSUInteger)numItems;
|
|
368
|
+
- (instancetype)initWithCapacity:(NSUInteger)numItems NS_DESIGNATED_INITIALIZER;
|
|
369
|
+
- (void)addObject:(ObjectType)anObject;
|
|
370
|
+
- (void)addObjectsFromArray:(NSArray<ObjectType> *)otherArray;
|
|
371
|
+
- (void)removeObject:(ObjectType)anObject;
|
|
372
|
+
- (void)removeAllObjects;
|
|
373
|
+
- (void)removeObjectsInArray:(NSArray<ObjectType> *)otherArray;
|
|
374
|
+
- (void)removeLastObject;
|
|
375
|
+
- (void)sortUsingSelector:(SEL)comparator;
|
|
376
|
+
- (void)sortUsingComparator:(NSComparator NS_NOESCAPE)cmptr;
|
|
377
|
+
- (void)removeObjectAtIndex:(NSUInteger)index;
|
|
378
|
+
@end
|
|
379
|
+
__attribute__((swift_bridge("Swift.Dictionary")))
|
|
380
|
+
@interface NSDictionary<__covariant KeyType, __covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
|
|
381
|
+
- (NSArray<KeyType> *)keysSortedByValueWithOptions:(NSSortOptions)opts usingComparator:(NSComparator NS_NOESCAPE)cmptr __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
382
|
+
- (BOOL)isEqualToDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary;
|
|
383
|
+
@property (readonly) NSUInteger count;
|
|
384
|
+
- (nullable ObjectType)objectForKey:(KeyType)aKey;
|
|
385
|
+
- (nullable ObjectType)objectForKeyedSubscript:(KeyType)key;
|
|
386
|
+
- (unsigned long long)fileSize;
|
|
387
|
+
@property (readonly, copy) NSArray<KeyType> *allKeys;
|
|
388
|
+
@property (readonly, copy) NSArray<ObjectType> *allValues;
|
|
389
|
+
- (NSEnumerator<KeyType> *)keyEnumerator;
|
|
390
|
+
- (NSEnumerator<ObjectType> *)objectEnumerator;
|
|
391
|
+
- (NSArray<ObjectType> *)objectsForKeys:(NSArray<KeyType> *)keys notFoundMarker:(ObjectType)marker;
|
|
392
|
+
- (void)enumerateKeysAndObjectsUsingBlock:(void (NS_NOESCAPE ^)(KeyType key, ObjectType obj, BOOL *stop))block;
|
|
393
|
+
+ (instancetype)dictionary;
|
|
394
|
+
+ (instancetype)dictionaryWithDictionary:(NSDictionary<KeyType, ObjectType> *)dict;
|
|
395
|
+
- (instancetype)initWithObjectsAndKeys:(id)firstObject, ... NS_REQUIRES_NIL_TERMINATION;
|
|
396
|
+
- (instancetype)initWithObjects:(NSArray<ObjectType> *)objects forKeys:(NSArray<KeyType <NSCopying>> *)keys;
|
|
397
|
+
+ (instancetype)dictionaryWithObject:(ObjectType)object forKey:(KeyType <NSCopying>)key;
|
|
398
|
+
+ (instancetype)dictionaryWithObjects:(const ObjectType _Nonnull [_Nullable])objects forKeys:(const KeyType <NSCopying> _Nonnull [_Nullable])keys count:(NSUInteger)cnt;
|
|
399
|
+
+ (instancetype)dictionaryWithObjects:(NSArray<ObjectType> *)objects forKeys:(NSArray<KeyType <NSCopying>> *)keys;
|
|
400
|
+
@end
|
|
401
|
+
@interface NSDictionary<KeyType, ObjectType> (NSDictionaryCreation)
|
|
402
|
+
+ (instancetype)dictionaryWithObjectsAndKeys:(id)firstObject, ... NS_REQUIRES_NIL_TERMINATION NS_SWIFT_UNAVAILABLE("Use dictionary literals instead");
|
|
403
|
+
- (instancetype)initWithObjectsAndKeys:(id)firstObject, ... NS_REQUIRES_NIL_TERMINATION;
|
|
404
|
+
@end
|
|
405
|
+
@interface NSDictionary<KeyType, ObjectType> (NSKeyValueCoding)
|
|
406
|
+
- (nullable ObjectType)valueForKey:(NSString *)key;
|
|
407
|
+
@end
|
|
408
|
+
@interface NSMutableDictionary<KeyType, ObjectType> : NSDictionary<KeyType, ObjectType>
|
|
409
|
+
- (void)removeObjectForKey:(KeyType)aKey;
|
|
410
|
+
- (void)addEntriesFromDictionary:(NSDictionary<KeyType, ObjectType> *)otherDictionary;
|
|
411
|
+
- (instancetype)initWithCapacity:(NSUInteger)numItems NS_DESIGNATED_INITIALIZER;
|
|
412
|
+
+ (instancetype)dictionaryWithCapacity:(NSUInteger)numItems;
|
|
413
|
+
- (void)setObject:(ObjectType)anObject forKey:(KeyType <NSCopying>)aKey;
|
|
414
|
+
- (void)setObject:(nullable ObjectType)obj forKeyedSubscript:(KeyType <NSCopying>)key;
|
|
415
|
+
- (void)removeAllObjects;
|
|
416
|
+
@end
|
|
417
|
+
__attribute__((swift_bridge("Swift.Set")))
|
|
418
|
+
@interface NSSet<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
|
|
419
|
+
@property (readonly) NSUInteger count;
|
|
420
|
+
+ (instancetype)set;
|
|
421
|
+
- (nullable ObjectType)anyObject;
|
|
422
|
+
- (void)makeObjectsPerformSelector:(SEL)aSelector NS_SWIFT_UNAVAILABLE("Use enumerateObjectsUsingBlock: or a for loop instead");
|
|
423
|
+
- (NSSet<ObjectType> *)objectsPassingTest:(BOOL (NS_NOESCAPE ^)(ObjectType obj, BOOL *stop))predicate;
|
|
424
|
+
@end
|
|
425
|
+
@interface NSSet<ObjectType> (NSSetCreation)
|
|
426
|
+
+ (instancetype)setWithArray:(NSArray<ObjectType> *)array;
|
|
427
|
+
@end
|
|
428
|
+
@interface NSSet<ObjectType> (NSExtendedSet)
|
|
429
|
+
- (BOOL)containsObject:(ObjectType)anObject;
|
|
430
|
+
- (BOOL)isSubsetOfSet:(NSSet<ObjectType> *)otherSet;
|
|
431
|
+
@end
|
|
432
|
+
@interface NSMutableSet<ObjectType> : NSSet<ObjectType>
|
|
433
|
+
- (void)removeAllObjects;
|
|
434
|
+
- (void)addObject:(ObjectType)object;
|
|
435
|
+
- (void)removeObject:(ObjectType)object;
|
|
436
|
+
@end
|
|
437
|
+
@interface NSOrderedSet<__covariant ObjectType> : NSObject <NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration>
|
|
438
|
+
@end
|
|
439
|
+
@interface NSMutableOrderedSet<ObjectType> : NSOrderedSet<ObjectType>
|
|
440
|
+
@end
|
|
441
|
+
@interface NSEnumerator<ObjectType> : NSObject <NSFastEnumeration>
|
|
442
|
+
@property (readonly, copy) NSArray<ObjectType> *allObjects;
|
|
443
|
+
- (nullable ObjectType)nextObject;
|
|
444
|
+
@end
|
|
445
|
+
@interface NSValue : NSObject <NSCopying, NSSecureCoding>
|
|
446
|
+
@property (readonly) const char *objCType NS_RETURNS_INNER_POINTER;
|
|
447
|
+
@property (nullable, readonly) void *pointerValue;
|
|
448
|
+
- (void)getValue:(void *)value;
|
|
449
|
+
+ (NSValue *)valueWithNonretainedObject:(nullable id)anObject;
|
|
450
|
+
@end
|
|
451
|
+
@interface NSNumber : NSValue
|
|
452
|
+
@property (readonly) NSUInteger unsignedIntegerValue __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
453
|
+
@property (readonly) BOOL boolValue;
|
|
454
|
+
- (NSComparisonResult)compare:(NSNumber *)otherNumber;
|
|
455
|
+
- (BOOL)isEqualToNumber:(NSNumber *)number;
|
|
456
|
+
@property (readonly, copy) NSString *stringValue;
|
|
457
|
+
@property (readonly) NSInteger integerValue;
|
|
458
|
+
@property (readonly) double doubleValue;
|
|
459
|
+
@property (readonly) char charValue;
|
|
460
|
+
@property (readonly) unsigned char unsignedCharValue;
|
|
461
|
+
@property (readonly) short shortValue;
|
|
462
|
+
@property (readonly) unsigned short unsignedShortValue;
|
|
463
|
+
@property (readonly) int intValue;
|
|
464
|
+
@property (readonly) unsigned int unsignedIntValue;
|
|
465
|
+
@property (readonly) long longValue;
|
|
466
|
+
@property (readonly) unsigned long unsignedLongValue;
|
|
467
|
+
@property (readonly) long long longLongValue;
|
|
468
|
+
@property (readonly) unsigned long long unsignedLongLongValue;
|
|
469
|
+
@property (readonly) float floatValue;
|
|
470
|
+
+ (NSNumber *)numberWithChar:(char)value;
|
|
471
|
+
+ (NSNumber *)numberWithUnsignedChar:(unsigned char)value;
|
|
472
|
+
+ (NSNumber *)numberWithShort:(short)value;
|
|
473
|
+
+ (NSNumber *)numberWithUnsignedShort:(unsigned short)value;
|
|
474
|
+
+ (NSNumber *)numberWithInt:(int)value;
|
|
475
|
+
+ (NSNumber *)numberWithUnsignedInt:(unsigned int)value;
|
|
476
|
+
+ (NSNumber *)numberWithLong:(long)value;
|
|
477
|
+
+ (NSNumber *)numberWithUnsignedLong:(unsigned long)value;
|
|
478
|
+
+ (NSNumber *)numberWithLongLong:(long long)value;
|
|
479
|
+
+ (NSNumber *)numberWithUnsignedLongLong:(unsigned long long)value;
|
|
480
|
+
+ (NSNumber *)numberWithFloat:(float)value;
|
|
481
|
+
+ (NSNumber *)numberWithDouble:(double)value;
|
|
482
|
+
+ (NSNumber *)numberWithBool:(BOOL)value;
|
|
483
|
+
+ (NSNumber *)numberWithInteger:(NSInteger)value;
|
|
484
|
+
+ (NSNumber *)numberWithUnsignedInteger:(NSUInteger)value;
|
|
485
|
+
- (NSNumber *)initWithLongLong:(long long)value NS_DESIGNATED_INITIALIZER;
|
|
486
|
+
@end
|
|
487
|
+
__attribute__((swift_bridge("Decimal")))
|
|
488
|
+
@interface NSDecimalNumber : NSNumber
|
|
489
|
+
@end
|
|
490
|
+
@interface NSNull : NSObject <NSCopying, NSSecureCoding>
|
|
491
|
+
+ (NSNull *)null;
|
|
492
|
+
@end
|
|
493
|
+
typedef NS_OPTIONS(NSUInteger, NSDataReadingOptions) {
|
|
494
|
+
NSDataReadingMappedIfSafe = 1UL << 0,
|
|
495
|
+
NSDataReadingUncached = 1UL << 1,
|
|
496
|
+
NSDataReadingMappedAlways = 1UL << 3,
|
|
497
|
+
NSDataReadingMapped = NSDataReadingMappedIfSafe,
|
|
498
|
+
NSMappedRead = NSDataReadingMapped,
|
|
499
|
+
NSUncachedRead = NSDataReadingUncached
|
|
500
|
+
};
|
|
501
|
+
typedef NS_OPTIONS(NSUInteger, NSDataWritingOptions) {
|
|
502
|
+
NSDataWritingAtomic = 1UL << 0,
|
|
503
|
+
NSDataWritingWithoutOverwriting = 1UL << 1,
|
|
504
|
+
NSDataWritingFileProtectionNone = 0x10000000,
|
|
505
|
+
NSDataWritingFileProtectionComplete = 0x20000000,
|
|
506
|
+
NSDataWritingFileProtectionCompleteUnlessOpen = 0x30000000,
|
|
507
|
+
NSDataWritingFileProtectionCompleteUntilFirstUserAuthentication = 0x40000000,
|
|
508
|
+
NSDataWritingFileProtectionCompleteWhenUserInactive = 0x50000000,
|
|
509
|
+
NSDataWritingFileProtectionMask = 0xf0000000,
|
|
510
|
+
NSAtomicWrite = NSDataWritingAtomic
|
|
511
|
+
};
|
|
512
|
+
typedef NS_OPTIONS(NSUInteger, NSDataSearchOptions) {
|
|
513
|
+
NSDataSearchBackwards = 1UL << 0,
|
|
514
|
+
NSDataSearchAnchored = 1UL << 1
|
|
515
|
+
};
|
|
516
|
+
typedef NS_OPTIONS(NSUInteger, NSDataBase64EncodingOptions) {
|
|
517
|
+
NSDataBase64Encoding64CharacterLineLength = 1UL << 0,
|
|
518
|
+
NSDataBase64Encoding76CharacterLineLength = 1UL << 1,
|
|
519
|
+
NSDataBase64EncodingEndLineWithCarriageReturn = 1UL << 4,
|
|
520
|
+
NSDataBase64EncodingEndLineWithLineFeed = 1UL << 5,
|
|
521
|
+
} __attribute__((availability(ios,introduced=7.0)));
|
|
522
|
+
typedef NS_OPTIONS(NSUInteger, NSDataBase64DecodingOptions) {
|
|
523
|
+
NSDataBase64DecodingIgnoreUnknownCharacters = 1UL << 0
|
|
524
|
+
} __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=7.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
525
|
+
__attribute__((swift_bridge("Data")))
|
|
526
|
+
@interface NSData : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
|
|
527
|
+
- (void)getBytes:(void *)buffer length:(NSUInteger)length;
|
|
528
|
+
- (BOOL)isEqualToData:(NSData *)other;
|
|
529
|
+
- (nullable instancetype)initWithBase64EncodedString:(NSString *)base64String options:(NSDataBase64DecodingOptions)options __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=7.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
530
|
+
- (nullable instancetype)initWithBase64EncodedData:(NSData *)base64Data options:(NSDataBase64DecodingOptions)options __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=7.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
531
|
+
- (BOOL)writeToURL:(NSURL *)url options:(NSDataWritingOptions)writeOptionsMask error:(NSError **)errorPtr;
|
|
532
|
+
+ (nullable instancetype)dataWithContentsOfFile:(NSString *)path options:(NSDataReadingOptions)readOptionsMask error:(NSError **)errorPtr;
|
|
533
|
+
+ (nullable instancetype)dataWithContentsOfFile:(NSString *)path;
|
|
534
|
+
+ (instancetype)data;
|
|
535
|
+
@property (readonly) NSUInteger length;
|
|
536
|
+
@property (readonly) const void *bytes NS_RETURNS_INNER_POINTER;
|
|
537
|
+
+ (instancetype)dataWithBytes:(nullable const void *)bytes length:(NSUInteger)length;
|
|
538
|
+
+ (instancetype)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)b;
|
|
539
|
+
- (NSData *)subdataWithRange:(NSRange)range;
|
|
540
|
+
- (BOOL)writeToFile:(NSString *)path options:(NSDataWritingOptions)writeOptionsMask error:(NSError **)errorPtr;
|
|
541
|
+
- (NSRange)rangeOfData:(NSData *)dataToFind options:(NSDataSearchOptions)mask range:(NSRange)searchRange;
|
|
542
|
+
@end
|
|
543
|
+
@interface NSData (NSExtendedData)
|
|
544
|
+
- (BOOL)writeToFile:(NSString *)path atomically:(BOOL)useAuxiliaryFile;
|
|
545
|
+
@end
|
|
546
|
+
@interface NSData (NSDeprecated)
|
|
547
|
+
- (NSString *)base64Encoding __attribute__((availability(macos,introduced=10.6,deprecated=10.9,message="Use base64EncodedStringWithOptions: instead"), availability(ios,introduced=4.0,deprecated=7.0,message="Use base64EncodedStringWithOptions: instead"), availability(watchos,introduced=2.0,deprecated=2.0,message="Use base64EncodedStringWithOptions: instead"), availability(tvos,introduced=9.0,deprecated=9.0,message="Use base64EncodedStringWithOptions: instead")));
|
|
548
|
+
@end
|
|
549
|
+
@interface NSData (NSDataBase64Encoding)
|
|
550
|
+
- (NSString *)base64EncodedStringWithOptions:(NSDataBase64EncodingOptions)options __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=7.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
551
|
+
@end
|
|
552
|
+
@interface NSMutableData : NSData
|
|
553
|
+
- (nullable instancetype)initWithCapacity:(NSUInteger)capacity;
|
|
554
|
+
- (void)appendBytes:(const void *)bytes length:(NSUInteger)length;
|
|
555
|
+
@property (readonly) void *mutableBytes NS_RETURNS_INNER_POINTER;
|
|
556
|
+
@property NSUInteger length;
|
|
557
|
+
+ (nullable instancetype)dataWithLength:(NSUInteger)length;
|
|
558
|
+
@end
|
|
559
|
+
@interface NSMutableData (NSExtendedMutableData)
|
|
560
|
+
- (void)appendData:(NSData *)other;
|
|
561
|
+
@end
|
|
562
|
+
__attribute__((swift_bridge("Date")))
|
|
563
|
+
@interface NSDate : NSObject <NSCopying, NSSecureCoding>
|
|
564
|
+
- (NSDate *)laterDate:(NSDate *)anotherDate;
|
|
565
|
+
+ (instancetype)dateWithTimeIntervalSinceNow:(NSTimeInterval)secs;
|
|
566
|
+
+ (instancetype)date;
|
|
567
|
+
- (NSComparisonResult)compare:(NSDate *)other;
|
|
568
|
+
- (instancetype)dateByAddingTimeInterval:(NSTimeInterval)ti __attribute__((availability(ios,introduced=2.0)));
|
|
569
|
+
@property (readonly) NSTimeInterval timeIntervalSinceNow;
|
|
570
|
+
- (BOOL)isEqualToDate:(NSDate *)otherDate;
|
|
571
|
+
@property (readonly) NSTimeInterval timeIntervalSinceReferenceDate;
|
|
572
|
+
@property (readonly) NSTimeInterval timeIntervalSince1970;
|
|
573
|
+
@property (class, readonly) NSTimeInterval timeIntervalSinceReferenceDate;
|
|
574
|
+
+ (instancetype)dateWithTimeIntervalSince1970:(NSTimeInterval)secs;
|
|
575
|
+
+ (instancetype)dateWithTimeIntervalSinceReferenceDate:(NSTimeInterval)ti;
|
|
576
|
+
@end
|
|
577
|
+
__attribute__((swift_bridge("DateComponents")))
|
|
578
|
+
@interface NSDateComponents : NSObject <NSCopying, NSSecureCoding>
|
|
579
|
+
@end
|
|
580
|
+
__attribute__((swift_bridge("DateInterval")))
|
|
581
|
+
@interface NSDateInterval : NSObject <NSCopying, NSSecureCoding>
|
|
582
|
+
@end
|
|
583
|
+
typedef NSString * NSURLResourceKey NS_TYPED_EXTENSIBLE_ENUM;
|
|
584
|
+
__attribute__((swift_bridge("URL")))
|
|
585
|
+
@interface NSURL : NSObject <NSCopying, NSSecureCoding>
|
|
586
|
+
- (BOOL)getResourceValue:(out id _Nullable * _Nonnull)value forKey:(NSURLResourceKey)key error:(out NSError ** _Nullable)error __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
587
|
+
@property (nullable, readonly, copy) NSString *lastPathComponent __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
588
|
+
- (nullable NSDictionary<NSURLResourceKey, id> *)resourceValuesForKeys:(NSArray<NSURLResourceKey> *)keys error:(NSError **)error __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
589
|
+
+ (NSURL *)fileURLWithPath:(NSString *)path isDirectory:(BOOL)isDir __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
590
|
+
@property (readonly, getter=isFileURL) BOOL fileURL;
|
|
591
|
+
- (BOOL)setResourceValue:(nullable id)value forKey:(NSURLResourceKey)key error:(NSError **)error __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
592
|
+
@property (nullable, readonly, copy) NSString *pathExtension __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
593
|
+
@property (nullable, readonly, copy) NSString *path;
|
|
594
|
+
@property (nullable, readonly, copy) NSString *scheme;
|
|
595
|
+
@property (nullable, readonly, copy) NSString *host;
|
|
596
|
+
+ (nullable instancetype)URLWithString:(NSString * _Nonnull)URLString;
|
|
597
|
+
+ (NSURL *)fileURLWithPath:(NSString *)path;
|
|
598
|
+
- (nullable NSURL *)URLByAppendingPathComponent:(NSString *)pathComponent __attribute__((availability(ios,introduced=4.0)));
|
|
599
|
+
@property (nullable, readonly, copy) NSString *absoluteString;
|
|
600
|
+
@end
|
|
601
|
+
__attribute__((swift_bridge("URLComponents")))
|
|
602
|
+
@interface NSURLComponents : NSObject <NSCopying>
|
|
603
|
+
+ (nullable instancetype)componentsWithURL:(NSURL *)url resolvingAgainstBaseURL:(BOOL)resolve;
|
|
604
|
+
@property (nullable, readonly, copy) NSURL *URL;
|
|
605
|
+
@property (nullable, copy) NSString *path;
|
|
606
|
+
@end
|
|
607
|
+
__attribute__((swift_bridge("URLQueryItem")))
|
|
608
|
+
@interface NSURLQueryItem : NSObject <NSCopying, NSSecureCoding>
|
|
609
|
+
@end
|
|
610
|
+
typedef NS_ENUM(NSUInteger, NSURLRequestCachePolicy)
|
|
611
|
+
{
|
|
612
|
+
NSURLRequestUseProtocolCachePolicy = 0,
|
|
613
|
+
|
|
614
|
+
NSURLRequestReloadIgnoringLocalCacheData = 1,
|
|
615
|
+
NSURLRequestReloadIgnoringLocalAndRemoteCacheData = 4,
|
|
616
|
+
NSURLRequestReloadIgnoringCacheData = NSURLRequestReloadIgnoringLocalCacheData,
|
|
617
|
+
|
|
618
|
+
NSURLRequestReturnCacheDataElseLoad = 2,
|
|
619
|
+
NSURLRequestReturnCacheDataDontLoad = 3,
|
|
620
|
+
|
|
621
|
+
NSURLRequestReloadRevalidatingCacheData = 5,
|
|
622
|
+
};
|
|
623
|
+
typedef NS_ENUM(NSUInteger, NSURLCredentialPersistence) {
|
|
624
|
+
NSURLCredentialPersistenceNone,
|
|
625
|
+
NSURLCredentialPersistenceForSession,
|
|
626
|
+
NSURLCredentialPersistencePermanent,
|
|
627
|
+
NSURLCredentialPersistenceSynchronizable __attribute__((availability(macos,introduced=10.8), availability(ios,introduced=6.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)))
|
|
628
|
+
};
|
|
629
|
+
__attribute__((swift_bridge("URLRequest")))
|
|
630
|
+
@interface NSURLRequest : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
|
|
631
|
+
- (instancetype)initWithURL:(NSURL *)URL cachePolicy:(NSURLRequestCachePolicy)cachePolicy timeoutInterval:(NSTimeInterval)timeoutInterval NS_DESIGNATED_INITIALIZER;
|
|
632
|
+
@property (nullable, readonly, copy) NSURL *URL;
|
|
633
|
+
+ (instancetype _Nonnull)requestWithURL:(NSURL * _Nonnull)URL;
|
|
634
|
+
@end
|
|
635
|
+
@interface NSMutableURLRequest : NSURLRequest
|
|
636
|
+
@property (nullable, copy) NSDictionary<NSString *, NSString *> *allHTTPHeaderFields;
|
|
637
|
+
@property BOOL HTTPShouldUsePipelining __attribute__((availability(macos,introduced=10.7,deprecated=15.4,message="Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead"), availability(ios,introduced=4.0,deprecated=18.4,message="Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead"), availability(watchos,introduced=2.0,deprecated=11.4,message="Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead"), availability(tvos,introduced=9.0,deprecated=18.4,message="Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead"), availability(visionos,introduced=1.0,deprecated=2.4,message="Only supported in the classic loader, please adopt HTTP/2 and HTTP/3 instead")));
|
|
638
|
+
@property BOOL HTTPShouldHandleCookies;
|
|
639
|
+
@property NSTimeInterval timeoutInterval;
|
|
640
|
+
@end
|
|
641
|
+
@interface NSMutableURLRequest (NSMutableHTTPURLRequest)
|
|
642
|
+
@property (copy) NSString *HTTPMethod;
|
|
643
|
+
- (void)setValue:(nullable NSString *)value forHTTPHeaderField:(NSString *)field;
|
|
644
|
+
@property (nullable, copy) NSData *HTTPBody;
|
|
645
|
+
@end
|
|
646
|
+
NS_SWIFT_NAME(URLResponse)
|
|
647
|
+
@interface NSURLResponse : NSObject <NSCopying, NSSecureCoding>
|
|
648
|
+
@property (readonly) long long expectedContentLength;
|
|
649
|
+
@property (nullable, readonly, copy) NSString *MIMEType;
|
|
650
|
+
@property (nullable, readonly, copy) NSURL *URL;
|
|
651
|
+
@end
|
|
652
|
+
NS_SWIFT_NAME(HTTPURLResponse)
|
|
653
|
+
@interface NSHTTPURLResponse : NSURLResponse
|
|
654
|
+
- (nullable instancetype)initWithURL:(NSURL *)url statusCode:(NSInteger)statusCode HTTPVersion:(nullable NSString *)HTTPVersion headerFields:(nullable NSDictionary<NSString *, NSString *> *)headerFields __attribute__((availability(macos,introduced=10.7), availability(ios,introduced=5.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
655
|
+
@property (readonly, copy) NSDictionary *allHeaderFields;
|
|
656
|
+
@property (readonly) NSInteger statusCode;
|
|
657
|
+
@end
|
|
658
|
+
NS_SWIFT_NAME(URLSessionDelegate)
|
|
659
|
+
@protocol NSURLSessionDelegate <NSObject>
|
|
660
|
+
@end
|
|
661
|
+
NS_SWIFT_NAME(URLSessionTaskDelegate)
|
|
662
|
+
typedef NS_ENUM(NSInteger, NSURLSessionAuthChallengeDisposition) {
|
|
663
|
+
NSURLSessionAuthChallengeUseCredential = 0,
|
|
664
|
+
NSURLSessionAuthChallengePerformDefaultHandling = 1,
|
|
665
|
+
NSURLSessionAuthChallengeCancelAuthenticationChallenge = 2,
|
|
666
|
+
NSURLSessionAuthChallengeRejectProtectionSpace = 3,
|
|
667
|
+
} __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=7.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
668
|
+
typedef NS_ENUM(NSInteger, NSURLSessionResponseDisposition) {
|
|
669
|
+
NSURLSessionResponseCancel = 0,
|
|
670
|
+
NSURLSessionResponseAllow = 1,
|
|
671
|
+
NSURLSessionResponseBecomeDownload = 2,
|
|
672
|
+
NSURLSessionResponseBecomeStream __attribute__((availability(macos,introduced=10.11), availability(ios,introduced=9.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) = 3,
|
|
673
|
+
} __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=7.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
674
|
+
typedef NS_ENUM(NSInteger, NSURLSessionDelayedRequestDisposition) {
|
|
675
|
+
NSURLSessionDelayedRequestContinueLoading = 0,
|
|
676
|
+
NSURLSessionDelayedRequestUseNewRequest = 1,
|
|
677
|
+
NSURLSessionDelayedRequestCancel = 2,
|
|
678
|
+
} __attribute__((availability(macos,introduced=10.13), availability(ios,introduced=11.0), availability(watchos,introduced=4.0), availability(tvos,introduced=11.0)));
|
|
679
|
+
@class NSURLSession, NSURLSessionTask, NSURLAuthenticationChallenge, NSURLCredential, NSInputStream, NSURLSessionTaskMetrics, NSHTTPURLResponse, NSURLSessionDataTask, NSURLSessionDownloadTask, NSURLSessionStreamTask, NSCachedURLResponse;
|
|
680
|
+
@protocol NSURLSessionTaskDelegate <NSURLSessionDelegate>
|
|
681
|
+
@optional
|
|
682
|
+
- (void)URLSession:(NSURLSession *)session didCreateTask:(NSURLSessionTask *)task
|
|
683
|
+
__attribute__((availability(macos,introduced=13.0), availability(ios,introduced=16.0), availability(watchos,introduced=9.0), availability(tvos,introduced=16.0)));
|
|
684
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
685
|
+
willBeginDelayedRequest:(NSURLRequest *)request
|
|
686
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURLSessionDelayedRequestDisposition disposition, NSURLRequest * _Nullable newRequest))completionHandler
|
|
687
|
+
__attribute__((availability(macos,introduced=10.13), availability(ios,introduced=11.0), availability(watchos,introduced=4.0), availability(tvos,introduced=11.0)));
|
|
688
|
+
- (void)URLSession:(NSURLSession *)session taskIsWaitingForConnectivity:(NSURLSessionTask *)task
|
|
689
|
+
__attribute__((availability(macos,introduced=10.13), availability(ios,introduced=11.0), availability(watchos,introduced=4.0), availability(tvos,introduced=11.0)));
|
|
690
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
691
|
+
willPerformHTTPRedirection:(NSHTTPURLResponse *)response
|
|
692
|
+
newRequest:(NSURLRequest *)request
|
|
693
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURLRequest * _Nullable))completionHandler;
|
|
694
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
695
|
+
didReceiveChallenge:(NSURLAuthenticationChallenge *)challenge
|
|
696
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential * _Nullable credential))completionHandler;
|
|
697
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
698
|
+
needNewBodyStream:(void (NS_SWIFT_SENDABLE ^)(NSInputStream * _Nullable bodyStream))completionHandler NS_SWIFT_ASYNC_NAME(urlSession(_:needNewBodyStreamForTask:));
|
|
699
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
700
|
+
needNewBodyStreamFromOffset:(int64_t)offset
|
|
701
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSInputStream * _Nullable bodyStream))completionHandler NS_SWIFT_ASYNC_NAME(urlSession(_:needNewBodyStreamForTask:from:)) __attribute__((availability(macos,introduced=14.0), availability(ios,introduced=17.0), availability(watchos,introduced=10.0), availability(tvos,introduced=17.0)));
|
|
702
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
703
|
+
didSendBodyData:(int64_t)bytesSent
|
|
704
|
+
totalBytesSent:(int64_t)totalBytesSent
|
|
705
|
+
totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend;
|
|
706
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didReceiveInformationalResponse:(NSHTTPURLResponse *)response __attribute__((availability(macos,introduced=14.0), availability(ios,introduced=17.0), availability(watchos,introduced=10.0), availability(tvos,introduced=17.0)));
|
|
707
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didFinishCollectingMetrics:(NSURLSessionTaskMetrics *)metrics __attribute__((availability(macosx,introduced=10.12), availability(ios,introduced=10.0), availability(watchos,introduced=3.0), availability(tvos,introduced=10.0)));
|
|
708
|
+
- (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task
|
|
709
|
+
didCompleteWithError:(nullable NSError *)error;
|
|
710
|
+
@end
|
|
711
|
+
NS_SWIFT_NAME(URLSessionDataDelegate)
|
|
712
|
+
@protocol NSURLSessionDataDelegate <NSURLSessionTaskDelegate>
|
|
713
|
+
@optional
|
|
714
|
+
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
|
|
715
|
+
didReceiveResponse:(NSURLResponse *)response
|
|
716
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSURLSessionResponseDisposition disposition))completionHandler;
|
|
717
|
+
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
|
|
718
|
+
didBecomeDownloadTask:(NSURLSessionDownloadTask *)downloadTask;
|
|
719
|
+
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
|
|
720
|
+
didBecomeStreamTask:(NSURLSessionStreamTask *)streamTask
|
|
721
|
+
__attribute__((availability(macos,introduced=10.11), availability(ios,introduced=9.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
722
|
+
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
|
|
723
|
+
didReceiveData:(NSData *)data;
|
|
724
|
+
- (void)URLSession:(NSURLSession *)session dataTask:(NSURLSessionDataTask *)dataTask
|
|
725
|
+
willCacheResponse:(NSCachedURLResponse *)proposedResponse
|
|
726
|
+
completionHandler:(void (NS_SWIFT_SENDABLE ^)(NSCachedURLResponse * _Nullable cachedResponse))completionHandler;
|
|
727
|
+
@end
|
|
728
|
+
@class NSURLSessionDataTask;
|
|
729
|
+
NS_SWIFT_NAME(URLSession)
|
|
730
|
+
NS_SWIFT_SENDABLE
|
|
731
|
+
__attribute__((availability(ios,introduced=7.0)))
|
|
732
|
+
@interface NSURLSession : NSObject
|
|
733
|
+
- (void)invalidateAndCancel;
|
|
734
|
+
@property (nullable, readonly, retain) id <NSURLSessionDelegate> delegate;
|
|
735
|
+
- (void)finishTasksAndInvalidate;
|
|
736
|
+
- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request;
|
|
737
|
+
@property (readonly, copy) NSURLSessionConfiguration *configuration;
|
|
738
|
+
+ (NSURLSession *)sessionWithConfiguration:(NSURLSessionConfiguration *)configuration delegate:(nullable id <NSURLSessionDelegate>)delegate delegateQueue:(nullable NSOperationQueue *)queue;
|
|
739
|
+
@property (class, readonly, strong) NSURLSession * _Nonnull sharedSession;
|
|
740
|
+
- (NSURLSessionDataTask * _Nonnull)dataTaskWithRequest:(NSURLRequest * _Nonnull)request completionHandler:(void (NS_SWIFT_SENDABLE ^ _Nonnull)(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error))completionHandler;
|
|
741
|
+
@end
|
|
742
|
+
NS_SWIFT_NAME(URLSessionTask)
|
|
743
|
+
NS_SWIFT_SENDABLE
|
|
744
|
+
__attribute__((availability(ios,introduced=7.0)))
|
|
745
|
+
@interface NSURLSessionTask : NSObject <NSCopying>
|
|
746
|
+
@property (readonly) NSUInteger taskIdentifier;
|
|
747
|
+
- (void)cancel;
|
|
748
|
+
@property float priority __attribute__((availability(macos,introduced=10.10), availability(ios,introduced=8.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
749
|
+
- (void)resume;
|
|
750
|
+
@end
|
|
751
|
+
NS_SWIFT_NAME(URLSessionTaskMetrics)
|
|
752
|
+
@interface NSURLSessionTaskMetrics : NSObject
|
|
753
|
+
@end
|
|
754
|
+
NS_SWIFT_NAME(URLSessionDataTask)
|
|
755
|
+
NS_SWIFT_SENDABLE
|
|
756
|
+
__attribute__((availability(ios,introduced=7.0)))
|
|
757
|
+
@interface NSURLSessionDataTask : NSURLSessionTask
|
|
758
|
+
@end
|
|
759
|
+
NS_SWIFT_NAME(URLSessionConfiguration)
|
|
760
|
+
@interface NSURLSessionConfiguration : NSObject <NSCopying, NSSecureCoding>
|
|
761
|
+
@property (nullable, retain) NSURLCache *URLCache;
|
|
762
|
+
@property NSTimeInterval timeoutIntervalForRequest;
|
|
763
|
+
@property (class, readonly, strong) NSURLSessionConfiguration *defaultSessionConfiguration;
|
|
764
|
+
@end
|
|
765
|
+
NS_SWIFT_NAME(URLCredential)
|
|
766
|
+
typedef struct __attribute__((objc_bridge(id))) __SecTrust *SecTrustRef;
|
|
767
|
+
@interface NSURLCredential : NSObject <NSSecureCoding, NSCopying>
|
|
768
|
+
+ (NSURLCredential *)credentialForTrust:(SecTrustRef)trust __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=3.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
769
|
+
+ (NSURLCredential *)credentialWithUser:(NSString *)user password:(NSString *)password persistence:(NSURLCredentialPersistence)persistence;
|
|
770
|
+
@end
|
|
771
|
+
__attribute__((swift_bridge("UUID")))
|
|
772
|
+
@interface NSUUID : NSObject <NSCopying, NSSecureCoding>
|
|
773
|
+
@property (readonly, copy) NSString *UUIDString;
|
|
774
|
+
@end
|
|
775
|
+
__attribute__((swift_bridge("IndexPath")))
|
|
776
|
+
@interface NSIndexPath : NSObject <NSCopying, NSSecureCoding>
|
|
777
|
+
@end
|
|
778
|
+
__attribute__((swift_bridge("IndexSet")))
|
|
779
|
+
@interface NSIndexSet : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
|
|
780
|
+
- (BOOL)containsIndex:(NSUInteger)value;
|
|
781
|
+
+ (instancetype)indexSetWithIndexesInRange:(NSRange)range;
|
|
782
|
+
@end
|
|
783
|
+
@interface NSMutableIndexSet : NSIndexSet
|
|
784
|
+
@end
|
|
785
|
+
__attribute__((swift_bridge("CharacterSet")))
|
|
786
|
+
@interface NSCharacterSet : NSObject <NSCopying, NSMutableCopying, NSSecureCoding>
|
|
787
|
+
@property (readonly, class, copy) NSCharacterSet *decimalDigitCharacterSet;
|
|
788
|
+
+ (NSCharacterSet *)characterSetWithCharactersInString:(NSString *)aString;
|
|
789
|
+
@property (readonly, copy) NSCharacterSet *invertedSet;
|
|
790
|
+
@end
|
|
791
|
+
FOUNDATION_EXPORT NSString * const NSUserActivityTypeBrowsingWeb;
|
|
792
|
+
typedef NSString * NSLocaleKey NS_TYPED_EXTENSIBLE_ENUM;
|
|
793
|
+
__attribute__((swift_bridge("Locale")))
|
|
794
|
+
@interface NSLocale : NSObject <NSCopying, NSSecureCoding>
|
|
795
|
+
- (nullable id)objectForKey:(NSLocaleKey)key;
|
|
796
|
+
+ (instancetype)localeWithLocaleIdentifier:(NSString *)ident __attribute__((availability(ios,introduced=4.0)));
|
|
797
|
+
@property (readonly, copy) NSString *localeIdentifier;
|
|
798
|
+
- (instancetype)initWithLocaleIdentifier:(NSString *)string NS_DESIGNATED_INITIALIZER;
|
|
799
|
+
@property (class, readonly, copy) NSArray<NSString *> *preferredLanguages;
|
|
800
|
+
- (nullable NSString *)displayNameForKey:(NSLocaleKey)key value:(id)value;
|
|
801
|
+
@end
|
|
802
|
+
@interface NSLocale (NSLocaleCreation)
|
|
803
|
+
@property (class, readonly, copy) NSLocale *currentLocale;
|
|
804
|
+
@end
|
|
805
|
+
__attribute__((swift_bridge("TimeZone")))
|
|
806
|
+
@interface NSTimeZone : NSObject <NSCopying, NSSecureCoding>
|
|
807
|
+
+ (instancetype)timeZoneForSecondsFromGMT:(NSInteger)seconds;
|
|
808
|
+
@end
|
|
809
|
+
__attribute__((swift_bridge("Calendar")))
|
|
810
|
+
@interface NSCalendar : NSObject <NSCopying, NSSecureCoding>
|
|
811
|
+
@end
|
|
812
|
+
typedef NSString *NSNotificationName NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(NSNotification.Name);
|
|
813
|
+
__attribute__((swift_bridge("Notification")))
|
|
814
|
+
@interface NSNotification : NSObject <NSCopying, NSCoding>
|
|
815
|
+
@property (nullable, readonly, retain) id object;
|
|
816
|
+
@property (readonly, copy) NSNotificationName name;
|
|
817
|
+
@end
|
|
818
|
+
NS_SWIFT_NAME(NotificationCenter)
|
|
819
|
+
@interface NSNotificationCenter : NSObject
|
|
820
|
+
- (void)postNotificationName:(NSNotificationName)aName object:(nullable id)anObject;
|
|
821
|
+
- (void)removeObserver:(id)observer name:(nullable NSNotificationName)aName object:(nullable id)anObject;
|
|
822
|
+
- (void)addObserver:(id)observer selector:(SEL)aSelector name:(nullable NSNotificationName)aName object:(nullable id)anObject;
|
|
823
|
+
@property (class, readonly, strong) NSNotificationCenter *defaultCenter;
|
|
824
|
+
- (id<NSObject>)addObserverForName:(nullable NSNotificationName)name object:(nullable id)obj queue:(nullable NSOperationQueue *)queue usingBlock:(void (NS_SWIFT_SENDABLE ^)(NSNotification *notification))block __attribute__((availability(ios,introduced=4.0)));
|
|
825
|
+
- (void)removeObserver:(id)observer;
|
|
826
|
+
@end
|
|
827
|
+
typedef NSString *NSErrorDomain;
|
|
828
|
+
typedef NSString *NSFileAttributeKey NS_TYPED_EXTENSIBLE_ENUM;
|
|
829
|
+
typedef NSString *NSFileAttributeType NS_TYPED_ENUM;
|
|
830
|
+
FOUNDATION_EXPORT NSFileAttributeType const NSFileTypeSymbolicLink;
|
|
831
|
+
FOUNDATION_EXPORT NSFileAttributeKey const NSFileType;
|
|
832
|
+
FOUNDATION_EXPORT NSFileAttributeKey const NSFileSize;
|
|
833
|
+
FOUNDATION_EXPORT NSFileAttributeKey const NSFileCreationDate;
|
|
834
|
+
FOUNDATION_EXPORT NSFileAttributeKey const NSFileModificationDate;
|
|
835
|
+
FOUNDATION_EXPORT NSFileAttributeKey const NSFileProtectionKey __attribute__((availability(ios,introduced=4.0)));
|
|
836
|
+
typedef NSString *NSFileProtectionType NS_TYPED_ENUM;
|
|
837
|
+
FOUNDATION_EXPORT NSFileProtectionType const NSFileProtectionNone __attribute__((availability(ios,introduced=4.0)));
|
|
838
|
+
FOUNDATION_EXPORT NSFileProtectionType const NSFileProtectionComplete __attribute__((availability(ios,introduced=4.0)));
|
|
839
|
+
FOUNDATION_EXPORT NSFileProtectionType const NSFileProtectionCompleteUnlessOpen __attribute__((availability(ios,introduced=5.0)));
|
|
840
|
+
FOUNDATION_EXPORT NSFileProtectionType const NSFileProtectionCompleteUntilFirstUserAuthentication __attribute__((availability(ios,introduced=5.0)));
|
|
841
|
+
typedef NSString *NSErrorUserInfoKey;
|
|
842
|
+
FOUNDATION_EXPORT NSErrorDomain const NSCocoaErrorDomain;
|
|
843
|
+
NS_ERROR_ENUM(NSCocoaErrorDomain) {
|
|
844
|
+
NSFileNoSuchFileError = 4,
|
|
845
|
+
NSFileWriteFileExistsError __attribute__((availability(ios,introduced=5.0))) = 516
|
|
846
|
+
};
|
|
847
|
+
#ifdef __cplusplus
|
|
848
|
+
extern "C" {
|
|
849
|
+
#endif
|
|
850
|
+
FOUNDATION_EXPORT Class _Nullable NSClassFromString(NSString *aClassName);
|
|
851
|
+
#ifdef __cplusplus
|
|
852
|
+
}
|
|
853
|
+
#endif
|
|
854
|
+
FOUNDATION_EXPORT NSErrorUserInfoKey const NSLocalizedDescriptionKey;
|
|
855
|
+
__attribute__((swift_bridge("Swift.Error")))
|
|
856
|
+
@interface NSError : NSObject <NSCopying, NSSecureCoding>
|
|
857
|
+
+ (instancetype)errorWithDomain:(NSErrorDomain)domain code:(NSInteger)code userInfo:(nullable NSDictionary<NSErrorUserInfoKey, id> *)dict;
|
|
858
|
+
- (instancetype)initWithDomain:(NSErrorDomain)domain code:(NSInteger)code userInfo:(nullable NSDictionary<NSErrorUserInfoKey, id> *)dict NS_DESIGNATED_INITIALIZER;
|
|
859
|
+
@property (readonly, copy) NSErrorDomain domain;
|
|
860
|
+
@property (readonly) NSInteger code;
|
|
861
|
+
@property (readonly, copy) NSDictionary<NSErrorUserInfoKey, id> *userInfo;
|
|
862
|
+
@property (readonly, copy) NSString *localizedDescription;
|
|
863
|
+
@end
|
|
864
|
+
typedef NSString *NSExceptionName NS_TYPED_EXTENSIBLE_ENUM;
|
|
865
|
+
FOUNDATION_EXPORT NSExceptionName const NSInvalidArgumentException;
|
|
866
|
+
@interface NSException : NSObject <NSCopying, NSSecureCoding>
|
|
867
|
+
@property (readonly, copy) NSExceptionName name;
|
|
868
|
+
@property (nullable, readonly, copy) NSDictionary *userInfo;
|
|
869
|
+
@property (nullable, readonly, copy) NSString *reason;
|
|
870
|
+
+ (NSException *)exceptionWithName:(NSExceptionName)name reason:(nullable NSString *)reason userInfo:(nullable NSDictionary *)userInfo;
|
|
871
|
+
@property (readonly, copy) NSArray<NSString *> *callStackSymbols __attribute__((availability(ios,introduced=4.0)));
|
|
872
|
+
@property (readonly, copy) NSArray<NSNumber *> *callStackReturnAddresses __attribute__((availability(ios,introduced=2.0)));
|
|
873
|
+
- (instancetype)initWithName:(NSExceptionName)aName reason:(nullable NSString *)aReason userInfo:(nullable NSDictionary *)aUserInfo NS_DESIGNATED_INITIALIZER;
|
|
874
|
+
@end
|
|
875
|
+
FOUNDATION_EXPORT NSUncaughtExceptionHandler * _Nullable NSGetUncaughtExceptionHandler(void);
|
|
876
|
+
FOUNDATION_EXPORT void NSSetUncaughtExceptionHandler(NSUncaughtExceptionHandler * _Nullable);
|
|
877
|
+
@interface NSAssertionHandler : NSObject
|
|
878
|
+
- (void)handleFailureInFunction:(NSString *)functionName file:(NSString *)fileName lineNumber:(NSInteger)line description:(nullable NSString *)format,... NS_FORMAT_FUNCTION(4,5);
|
|
879
|
+
@property (class, readonly, strong) NSAssertionHandler *currentHandler;
|
|
880
|
+
- (void)handleFailureInMethod:(SEL)selector object:(id)object file:(NSString *)fileName lineNumber:(NSInteger)line description:(nullable NSString *)format, ... NS_FORMAT_FUNCTION(5,6);
|
|
881
|
+
@end
|
|
882
|
+
#if !defined(NS_BLOCK_ASSERTIONS)
|
|
883
|
+
#define __PRAGMA_PUSH_NO_EXTRA_ARG_WARNINGS _Pragma("clang diagnostic push") _Pragma("clang diagnostic ignored \"-Wformat-extra-args\"")
|
|
884
|
+
#define __PRAGMA_POP_NO_EXTRA_ARG_WARNINGS _Pragma("clang diagnostic pop")
|
|
885
|
+
#define NSAssert(condition, desc, ...) do { __PRAGMA_PUSH_NO_EXTRA_ARG_WARNINGS if (__builtin_expect(!(condition), 0)) { [[NSAssertionHandler currentHandler] handleFailureInMethod:_cmd object:self file:@(__FILE_NAME__) lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; } __PRAGMA_POP_NO_EXTRA_ARG_WARNINGS } while (0)
|
|
886
|
+
#else
|
|
887
|
+
#define NSAssert(condition, desc, ...) do {} while (0)
|
|
888
|
+
#endif
|
|
889
|
+
#if !defined(NS_BLOCK_ASSERTIONS)
|
|
890
|
+
#define NSCAssert(condition, desc, ...) do { __PRAGMA_PUSH_NO_EXTRA_ARG_WARNINGS if (__builtin_expect(!(condition), 0)) { [[NSAssertionHandler currentHandler] handleFailureInFunction:(NSString * _Nonnull)@(__PRETTY_FUNCTION__) file:@(__FILE_NAME__) lineNumber:__LINE__ description:(desc), ##__VA_ARGS__]; } __PRAGMA_POP_NO_EXTRA_ARG_WARNINGS } while(0)
|
|
891
|
+
#else
|
|
892
|
+
#define NSCAssert(condition, desc, ...) do {} while (0)
|
|
893
|
+
#endif
|
|
894
|
+
#define NSCParameterAssert(condition) NSCAssert((condition), @"Invalid parameter not satisfying: %@", @#condition)
|
|
895
|
+
#define NSParameterAssert(condition) NSAssert((condition), @"Invalid parameter not satisfying: %@", @#condition)
|
|
896
|
+
@interface NSObject (NSKeyValueCoding)
|
|
897
|
+
- (void)setValue:(nullable id)value forKey:(NSString *)key;
|
|
898
|
+
@end
|
|
899
|
+
NS_SWIFT_NAME(Bundle)
|
|
900
|
+
@interface NSBundle : NSObject
|
|
901
|
+
- (nullable NSString *)pathForResource:(nullable NSString *)name ofType:(nullable NSString *)ext;
|
|
902
|
+
- (nullable id)objectForInfoDictionaryKey:(NSString *)key;
|
|
903
|
+
@property (nullable, readonly, copy) NSString *executablePath;
|
|
904
|
+
@property (nullable, readonly, copy) NSDictionary<NSString *, id> *infoDictionary;
|
|
905
|
+
@property (class, readonly, strong) NSBundle *mainBundle;
|
|
906
|
+
- (nullable NSURL *)URLForResource:(nullable NSString *)name withExtension:(nullable NSString *)ext __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
907
|
+
- (nullable instancetype)initWithURL:(NSURL *)url __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
908
|
+
+ (NSBundle *)bundleForClass:(Class)aClass;
|
|
909
|
+
@property (nullable, readonly, copy) NSString *bundleIdentifier;
|
|
910
|
+
- (NSString *)localizedStringForKey:(NSString *)key value:(nullable NSString *)value table:(nullable NSString *)tableName NS_FORMAT_ARGUMENT(1);
|
|
911
|
+
@end
|
|
912
|
+
NS_SWIFT_NAME(UserDefaults)
|
|
913
|
+
@interface NSUserDefaults : NSObject
|
|
914
|
+
@property (class, readonly, strong) NSUserDefaults *standardUserDefaults;
|
|
915
|
+
@end
|
|
916
|
+
NS_SWIFT_NAME(OperationQueue)
|
|
917
|
+
typedef NS_ENUM(NSInteger, NSOperationQueuePriority) {
|
|
918
|
+
NSOperationQueuePriorityVeryLow = -8L,
|
|
919
|
+
NSOperationQueuePriorityLow = -4L,
|
|
920
|
+
NSOperationQueuePriorityNormal = 0,
|
|
921
|
+
NSOperationQueuePriorityHigh = 4,
|
|
922
|
+
NSOperationQueuePriorityVeryHigh = 8
|
|
923
|
+
};
|
|
924
|
+
@interface NSOperationQueue : NSObject
|
|
925
|
+
- (void)addBarrierBlock:(void (NS_SWIFT_SENDABLE ^)(void))barrier __attribute__((availability(macos,introduced=10.15), availability(ios,introduced=13.0), availability(tvos,introduced=13.0), availability(watchos,introduced=6.0)));
|
|
926
|
+
@property (readonly, copy) NSArray<__kindof NSOperation *> *operations __attribute__((availability(macos,introduced=10.5,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead"), availability(ios,introduced=2.0,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead"), availability(watchos,introduced=2.0,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead"), availability(tvos,introduced=9.0,deprecated=100000,message="access to operations is inherently a race condition, it should not be used. For barrier style behaviors please use addBarrierBlock: instead")));
|
|
927
|
+
- (void)addOperation:(NSOperation *)op;
|
|
928
|
+
@property (readonly) NSUInteger operationCount __attribute__((availability(macos,introduced=10.6,deprecated=100000,replacement="progress.completedUnitCount"), availability(ios,introduced=4.0,deprecated=100000,replacement="progress.completedUnitCount"), availability(watchos,introduced=2.0,deprecated=100000,replacement="progress.completedUnitCount"), availability(tvos,introduced=9.0,deprecated=100000,replacement="progress.completedUnitCount")));
|
|
929
|
+
- (void)cancelAllOperations;
|
|
930
|
+
@property (class, readonly, strong) NSOperationQueue *mainQueue __attribute__((availability(ios,introduced=4.0)));
|
|
931
|
+
- (void)addOperationWithBlock:(void (NS_SWIFT_SENDABLE ^)(void))block __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) NS_SWIFT_DISABLE_ASYNC;
|
|
932
|
+
@property NSInteger maxConcurrentOperationCount;
|
|
933
|
+
@property (getter=isSuspended) BOOL suspended;
|
|
934
|
+
@property (nullable, copy) NSString *name __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
935
|
+
@property (class, readonly, strong, nullable) NSOperationQueue *currentQueue __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
936
|
+
@end
|
|
937
|
+
NS_SWIFT_NAME(Operation)
|
|
938
|
+
@interface NSOperation : NSObject
|
|
939
|
+
- (void)addDependency:(NSOperation *)op;
|
|
940
|
+
@property NSOperationQueuePriority queuePriority;
|
|
941
|
+
@property (nullable, copy) void (NS_SWIFT_SENDABLE ^completionBlock)(void) __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
942
|
+
- (void)cancel;
|
|
943
|
+
@property (readonly, getter=isFinished) BOOL finished;
|
|
944
|
+
@property (readonly, getter=isExecuting) BOOL executing;
|
|
945
|
+
@property (readonly, getter=isCancelled) BOOL cancelled;
|
|
946
|
+
@property (readonly, getter=isAsynchronous) BOOL asynchronous __attribute__((availability(macos,introduced=10.8), availability(ios,introduced=7.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
947
|
+
- (void)start;
|
|
948
|
+
- (void)main;
|
|
949
|
+
@end
|
|
950
|
+
NS_SWIFT_NAME(Progress)
|
|
951
|
+
typedef NSString * NSProgressUserInfoKey NS_TYPED_EXTENSIBLE_ENUM;
|
|
952
|
+
@interface NSProgress : NSObject
|
|
953
|
+
@property int64_t totalUnitCount;
|
|
954
|
+
@property int64_t completedUnitCount;
|
|
955
|
+
- (instancetype)initWithParent:(nullable NSProgress *)parentProgressOrNil userInfo:(nullable NSDictionary<NSProgressUserInfoKey, id> *)userInfoOrNil NS_DESIGNATED_INITIALIZER;
|
|
956
|
+
@end
|
|
957
|
+
NS_SWIFT_NAME(Thread)
|
|
958
|
+
@interface NSThread : NSObject
|
|
959
|
+
@property (class, readonly, strong) NSThread *currentThread NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Thread.current cannot be used from async contexts.");
|
|
960
|
+
@property (nullable, copy) NSString *name __attribute__((availability(ios,introduced=2.0)));
|
|
961
|
+
- (instancetype)initWithTarget:(id)target selector:(SEL)selector object:(nullable id)argument __attribute__((availability(ios,introduced=2.0)));
|
|
962
|
+
- (void)start __attribute__((availability(ios,introduced=2.0)));
|
|
963
|
+
- (void)cancel __attribute__((availability(ios,introduced=2.0)));
|
|
964
|
+
+ (void)sleepForTimeInterval:(NSTimeInterval)ti NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use Task.sleep(until:clock:) instead.");
|
|
965
|
+
@property (readonly) BOOL isMainThread __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
966
|
+
@property (class, readonly) BOOL isMainThread __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Work intended for the main actor should be marked with @MainActor");
|
|
967
|
+
@end
|
|
968
|
+
NS_SWIFT_NAME(RunLoop)
|
|
969
|
+
@interface NSRunLoop : NSObject
|
|
970
|
+
@property (class, readonly, strong) NSRunLoop *mainRunLoop __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
971
|
+
@end
|
|
972
|
+
typedef NSString *NSRunLoopMode NS_TYPED_EXTENSIBLE_ENUM NS_SWIFT_NAME(RunLoop.Mode);
|
|
973
|
+
NS_SWIFT_NAME(Timer)
|
|
974
|
+
@interface NSTimer : NSObject
|
|
975
|
+
+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(nullable id)userInfo repeats:(BOOL)yesOrNo NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Timers scheduled in an async context may never fire.");
|
|
976
|
+
- (void)invalidate;
|
|
977
|
+
@end
|
|
978
|
+
typedef NS_ENUM(NSUInteger, NSSearchPathDirectory) {
|
|
979
|
+
NSApplicationDirectory = 1,
|
|
980
|
+
NSDemoApplicationDirectory,
|
|
981
|
+
NSDeveloperApplicationDirectory,
|
|
982
|
+
NSAdminApplicationDirectory,
|
|
983
|
+
NSLibraryDirectory,
|
|
984
|
+
NSDeveloperDirectory,
|
|
985
|
+
NSUserDirectory,
|
|
986
|
+
NSDocumentationDirectory,
|
|
987
|
+
NSDocumentDirectory,
|
|
988
|
+
NSCoreServiceDirectory,
|
|
989
|
+
NSAutosavedInformationDirectory __attribute__((availability(ios,introduced=4.0))) = 11,
|
|
990
|
+
NSDesktopDirectory = 12,
|
|
991
|
+
NSCachesDirectory = 13,
|
|
992
|
+
NSApplicationSupportDirectory = 14,
|
|
993
|
+
NSDownloadsDirectory __attribute__((availability(ios,introduced=2.0))) = 15,
|
|
994
|
+
NSInputMethodsDirectory __attribute__((availability(ios,introduced=4.0))) = 16,
|
|
995
|
+
NSMoviesDirectory __attribute__((availability(ios,introduced=4.0))) = 17,
|
|
996
|
+
NSMusicDirectory __attribute__((availability(ios,introduced=4.0))) = 18,
|
|
997
|
+
NSPicturesDirectory __attribute__((availability(ios,introduced=4.0))) = 19,
|
|
998
|
+
NSPrinterDescriptionDirectory __attribute__((availability(ios,introduced=4.0))) = 20,
|
|
999
|
+
NSSharedPublicDirectory __attribute__((availability(ios,introduced=4.0))) = 21,
|
|
1000
|
+
NSPreferencePanesDirectory __attribute__((availability(ios,introduced=4.0))) = 22,
|
|
1001
|
+
NSApplicationScriptsDirectory __attribute__((unavailable("not available on iOS"))) = 23,
|
|
1002
|
+
NSItemReplacementDirectory __attribute__((availability(ios,introduced=4.0))) = 99,
|
|
1003
|
+
NSAllApplicationsDirectory = 100,
|
|
1004
|
+
NSAllLibrariesDirectory = 101,
|
|
1005
|
+
NSTrashDirectory __attribute__((availability(ios,introduced=11.0))) = 102
|
|
1006
|
+
};
|
|
1007
|
+
typedef NS_OPTIONS(NSUInteger, NSSearchPathDomainMask) {
|
|
1008
|
+
NSUserDomainMask = 1,
|
|
1009
|
+
NSLocalDomainMask = 2,
|
|
1010
|
+
NSNetworkDomainMask = 4,
|
|
1011
|
+
NSSystemDomainMask = 8,
|
|
1012
|
+
NSAllDomainsMask = 0x0ffff
|
|
1013
|
+
};
|
|
1014
|
+
FOUNDATION_EXPORT NSArray<NSString *> *NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory directory, NSSearchPathDomainMask domainMask, BOOL expandTilde);
|
|
1015
|
+
NS_SWIFT_NAME(FileManager)
|
|
1016
|
+
typedef NS_OPTIONS(NSUInteger, NSDirectoryEnumerationOptions) {
|
|
1017
|
+
NSDirectoryEnumerationSkipsSubdirectoryDescendants = 1UL << 0,
|
|
1018
|
+
|
|
1019
|
+
NSDirectoryEnumerationSkipsPackageDescendants = 1UL << 1,
|
|
1020
|
+
|
|
1021
|
+
NSDirectoryEnumerationSkipsHiddenFiles = 1UL << 2,
|
|
1022
|
+
|
|
1023
|
+
/* NSDirectoryEnumerationIncludesDirectoriesPostOrder causes the NSDirectoryEnumerator to enumerate each directory a second time after all of its contained files have been enumerated. Use NSDirectoryEnumerator.isEnumeratingDirectoryPostOrder to differentiate a post-order enumerated directory from a pre-order one.
|
|
1024
|
+
*/
|
|
1025
|
+
NSDirectoryEnumerationIncludesDirectoriesPostOrder __attribute__((availability(macos,introduced=10.15), availability(ios,introduced=13.0), availability(watchos,introduced=6.0), availability(tvos,introduced=13.0))) = 1UL << 3,
|
|
1026
|
+
|
|
1027
|
+
/* NSDirectoryEnumerationProducesRelativePathURLs causes the NSDirectoryEnumerator to always produce file path URLs relative to the directoryURL. This can reduce the size of each URL object returned during enumeration.
|
|
1028
|
+
*/
|
|
1029
|
+
NSDirectoryEnumerationProducesRelativePathURLs __attribute__((availability(macos,introduced=10.15), availability(ios,introduced=13.0), availability(watchos,introduced=6.0), availability(tvos,introduced=13.0))) = 1UL << 4,
|
|
1030
|
+
} __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1031
|
+
typedef NSString * NSKeyValueChangeKey NS_TYPED_ENUM;
|
|
1032
|
+
FOUNDATION_EXPORT NSKeyValueChangeKey const NSKeyValueChangeKindKey;
|
|
1033
|
+
FOUNDATION_EXPORT NSKeyValueChangeKey const NSKeyValueChangeNewKey;
|
|
1034
|
+
FOUNDATION_EXPORT NSKeyValueChangeKey const NSKeyValueChangeOldKey;
|
|
1035
|
+
FOUNDATION_EXPORT NSKeyValueChangeKey const NSKeyValueChangeIndexesKey;
|
|
1036
|
+
FOUNDATION_EXPORT NSKeyValueChangeKey const NSKeyValueChangeNotificationIsPriorKey __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1037
|
+
typedef NS_OPTIONS(NSUInteger, NSKeyValueObservingOptions) {
|
|
1038
|
+
|
|
1039
|
+
NSKeyValueObservingOptionNew = 0x01,
|
|
1040
|
+
|
|
1041
|
+
NSKeyValueObservingOptionOld = 0x02,
|
|
1042
|
+
|
|
1043
|
+
/*
|
|
1044
|
+
The change dictionary in the notification will always contain an NSKeyValueChangeNewKey entry if NSKeyValueObservingOptionNew is also specified but will never contain an NSKeyValueChangeOldKey entry. (In an initial notification the current value of the observed property may be old, but it's new to the observer.) You can use this option instead of explicitly invoking, at the same time, code that is also invoked by the observer's -observeValueForKeyPath:ofObject:change:context: method. When this option is used with -addObserver:toObjectsAtIndexes:forKeyPath:options:context: a notification will be sent for each indexed object to which the observer is being added.
|
|
1045
|
+
*/
|
|
1046
|
+
NSKeyValueObservingOptionInitial __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) = 0x04,
|
|
1047
|
+
|
|
1048
|
+
/*
|
|
1049
|
+
The change dictionary in a notification sent before a change always contains an NSKeyValueChangeNotificationIsPriorKey entry whose value is [NSNumber numberWithBool:YES], but never contains an NSKeyValueChangeNewKey entry. You can use this option when the observer's own KVO-compliance requires it to invoke one of the -willChange... methods for one of its own properties, and the value of that property depends on the value of the observed object's property. (In that situation it's too late to easily invoke -willChange... properly in response to receiving an -observeValueForKeyPath:ofObject:change:context: message after the change.)
|
|
1050
|
+
|
|
1051
|
+
When this option is specified, the change dictionary in a notification sent after a change contains the same entries that it would contain if this option were not specified, except for ordered unique to-many relationships represented by NSOrderedSets. For those, for NSKeyValueChangeInsertion and NSKeyValueChangeReplacement changes, the change dictionary for a will-change notification contains an NSKeyValueChangeIndexesKey (and NSKeyValueChangeOldKey in the case of Replacement where the NSKeyValueObservingOptionOld option was specified at registration time) which give the indexes (and objects) which *may* be changed by the operation. The second notification, after the change, contains entries reporting what did actually change. For NSKeyValueChangeRemoval changes, removals by index are precise.
|
|
1052
|
+
*/
|
|
1053
|
+
NSKeyValueObservingOptionPrior __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) = 0x08
|
|
1054
|
+
|
|
1055
|
+
};
|
|
1056
|
+
typedef NS_ENUM(NSUInteger, NSKeyValueChange) {
|
|
1057
|
+
NSKeyValueChangeSetting = 1,
|
|
1058
|
+
NSKeyValueChangeInsertion = 2,
|
|
1059
|
+
NSKeyValueChangeRemoval = 3,
|
|
1060
|
+
NSKeyValueChangeReplacement = 4,
|
|
1061
|
+
};
|
|
1062
|
+
@interface NSDirectoryEnumerator<ObjectType> : NSEnumerator<ObjectType>
|
|
1063
|
+
@end
|
|
1064
|
+
@interface NSFileManager : NSObject
|
|
1065
|
+
- (BOOL)fileExistsAtPath:(NSString *)path isDirectory:(nullable BOOL *)isDirectory;
|
|
1066
|
+
- (BOOL)moveItemAtURL:(NSURL *)srcURL toURL:(NSURL *)dstURL error:(NSError **)error __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1067
|
+
- (BOOL)removeItemAtURL:(NSURL *)URL error:(NSError **)error __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1068
|
+
- (nullable NSDirectoryEnumerator<NSURL *> *)enumeratorAtURL:(NSURL *)url includingPropertiesForKeys:(nullable NSArray<NSURLResourceKey> *)keys options:(NSDirectoryEnumerationOptions)mask errorHandler:(nullable BOOL (^)(NSURL *url, NSError *error))handler __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1069
|
+
@property (class, readonly, strong) NSFileManager *defaultManager;
|
|
1070
|
+
- (BOOL)removeItemAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(ios,introduced=2.0)));
|
|
1071
|
+
- (BOOL)setAttributes:(NSDictionary<NSFileAttributeKey, id> *)attributes ofItemAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(ios,introduced=2.0)));
|
|
1072
|
+
- (BOOL)moveItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error __attribute__((availability(ios,introduced=2.0)));
|
|
1073
|
+
- (BOOL)createDirectoryAtPath:(NSString *)path withIntermediateDirectories:(BOOL)createIntermediates attributes:(nullable NSDictionary<NSFileAttributeKey, id> *)attributes error:(NSError **)error __attribute__((availability(ios,introduced=2.0)));
|
|
1074
|
+
- (nullable NSArray<NSString *> *)contentsOfDirectoryAtPath:(NSString *)path error:(NSError **)error __attribute__((availability(ios,introduced=2.0)));
|
|
1075
|
+
- (nullable NSArray<NSString *> *)subpathsOfDirectoryAtPath:(NSString *)path error:(NSError **)error;
|
|
1076
|
+
- (nullable NSDictionary<NSFileAttributeKey, id> *)attributesOfItemAtPath:(NSString *)path error:(NSError **)error;
|
|
1077
|
+
- (BOOL)fileExistsAtPath:(NSString *)path;
|
|
1078
|
+
- (BOOL)copyItemAtPath:(NSString *)srcPath toPath:(NSString *)dstPath error:(NSError **)error __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1079
|
+
- (nullable NSData *)contentsAtPath:(NSString *)path;
|
|
1080
|
+
@end
|
|
1081
|
+
NS_SWIFT_NAME(FileHandle)
|
|
1082
|
+
@interface NSFileHandle : NSObject <NSSecureCoding>
|
|
1083
|
+
+ (nullable instancetype)fileHandleForWritingAtPath:(NSString *)path;
|
|
1084
|
+
@property (readonly) int fileDescriptor;
|
|
1085
|
+
- (BOOL)writeData:(NSData *)data error:(out NSError **)error __attribute__((availability(ios,introduced=13.0))) NS_REFINED_FOR_SWIFT;
|
|
1086
|
+
- (BOOL)getOffset:(out unsigned long long *)offsetInFile error:(out NSError **)error __attribute__((availability(ios,introduced=13.0))) NS_REFINED_FOR_SWIFT;
|
|
1087
|
+
- (BOOL)seekToEndReturningOffset:(out unsigned long long *_Nullable)offsetInFile error:(out NSError **)error __attribute__((availability(ios,introduced=13.0))) NS_REFINED_FOR_SWIFT;
|
|
1088
|
+
- (BOOL)synchronizeAndReturnError:(out NSError **)error __attribute__((availability(ios,introduced=13.0)));
|
|
1089
|
+
- (BOOL)closeAndReturnError:(out NSError **)error __attribute__((availability(ios,introduced=13.0)));
|
|
1090
|
+
- (void)writeData:(NSData *)data __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="writeData:error:")));
|
|
1091
|
+
@property (readonly) unsigned long long offsetInFile __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="getOffset:error:")));
|
|
1092
|
+
- (unsigned long long)seekToEndOfFile __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="seekToEndReturningOffset:error:")));
|
|
1093
|
+
- (void)synchronizeFile __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="synchronizeAndReturnError:")));
|
|
1094
|
+
- (void)closeFile __attribute__((availability(ios,introduced=2.0,deprecated=100000,replacement="closeAndReturnError:")));
|
|
1095
|
+
@end
|
|
1096
|
+
NS_SWIFT_NAME(ProcessInfo)
|
|
1097
|
+
@interface NSProcessInfo : NSObject
|
|
1098
|
+
@property (readonly) NSUInteger activeProcessorCount __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1099
|
+
@property (readonly) unsigned long long physicalMemory __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1100
|
+
@property (class, readonly, strong) NSProcessInfo *processInfo;
|
|
1101
|
+
@property (copy) NSString *processName;
|
|
1102
|
+
@property (readonly, copy) NSDictionary<NSString *, NSString *> *environment;
|
|
1103
|
+
@property (readonly) NSUInteger processorCount __attribute__((availability(ios,introduced=2.0)));
|
|
1104
|
+
@end
|
|
1105
|
+
@interface NSProcessInfo (NSProcessInfoPlatform)
|
|
1106
|
+
@property (readonly, getter=isiOSAppOnMac) BOOL iOSAppOnMac __attribute__((availability(macos,introduced=11.0), availability(ios,introduced=14.0), availability(watchos,introduced=7.0), availability(tvos,introduced=14.0)));
|
|
1107
|
+
@end
|
|
1108
|
+
@interface NSCoder : NSObject
|
|
1109
|
+
- (nullable id)decodeTopLevelObjectForKey:(NSString *)key error:(NSError **)error __attribute__((availability(macos,introduced=10.11), availability(ios,introduced=9.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) NS_SWIFT_UNAVAILABLE("Use 'decodeObject(of:, forKey:)' instead");
|
|
1110
|
+
- (void)encodeObject:(nullable id)object forKey:(NSString *)key;
|
|
1111
|
+
- (nullable id)decodeObjectOfClass:(Class)aClass forKey:(NSString *)key __attribute__((availability(macos,introduced=10.8), availability(ios,introduced=6.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1112
|
+
@end
|
|
1113
|
+
NS_SWIFT_NAME(NSKeyedArchiver)
|
|
1114
|
+
@interface NSKeyedArchiver : NSCoder
|
|
1115
|
+
+ (NSData *)archivedDataWithRootObject:(id)rootObject __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"), availability(ios,introduced=2.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"), availability(watchos,introduced=2.0,deprecated=5.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead"), availability(tvos,introduced=9.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: instead")));
|
|
1116
|
+
+ (nullable NSData *)archivedDataWithRootObject:(id)object requiringSecureCoding:(BOOL)requiresSecureCoding error:(NSError **)error __attribute__((availability(macos,introduced=10.13), availability(ios,introduced=11.0), availability(watchos,introduced=4.0), availability(tvos,introduced=11.0)));
|
|
1117
|
+
+ (BOOL)archiveRootObject:(id)rootObject toFile:(NSString *)path __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead"), availability(ios,introduced=2.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead"), availability(watchos,introduced=2.0,deprecated=5.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead"), availability(tvos,introduced=9.0,deprecated=12.0,message="Use +archivedDataWithRootObject:requiringSecureCoding:error: and -writeToURL:options:error: instead")));
|
|
1118
|
+
@end
|
|
1119
|
+
NS_SWIFT_NAME(Stream)
|
|
1120
|
+
@interface NSStream : NSObject
|
|
1121
|
+
- (void)open;
|
|
1122
|
+
- (void)close;
|
|
1123
|
+
@end
|
|
1124
|
+
NS_SWIFT_NAME(InputStream)
|
|
1125
|
+
@interface NSInputStream : NSStream
|
|
1126
|
+
+ (nullable instancetype)inputStreamWithData:(NSData *)data;
|
|
1127
|
+
- (NSInteger)read:(uint8_t *)buffer maxLength:(NSUInteger)len;
|
|
1128
|
+
@end
|
|
1129
|
+
NS_SWIFT_NAME(OutputStream)
|
|
1130
|
+
@interface NSOutputStream : NSStream
|
|
1131
|
+
@end
|
|
1132
|
+
typedef NS_ENUM(NSUInteger, NSDateFormatterBehavior) { NSDateFormatterBehaviorDefault = 0, NSDateFormatterBehavior10_4 = 1040 };
|
|
1133
|
+
NS_SWIFT_NAME(Formatter)
|
|
1134
|
+
@interface NSFormatter : NSObject <NSCopying, NSCoding>
|
|
1135
|
+
@end
|
|
1136
|
+
NS_SWIFT_NAME(DateFormatter)
|
|
1137
|
+
@interface NSDateFormatter : NSFormatter
|
|
1138
|
+
@property NSDateFormatterBehavior formatterBehavior;
|
|
1139
|
+
@property (null_resettable, copy) NSString *dateFormat;
|
|
1140
|
+
@property (null_resettable, copy) NSLocale *locale;
|
|
1141
|
+
@property (null_resettable, copy) NSTimeZone *timeZone;
|
|
1142
|
+
- (NSString *)stringFromDate:(NSDate *)date;
|
|
1143
|
+
- (nullable NSDate *)dateFromString:(NSString *)string;
|
|
1144
|
+
@end
|
|
1145
|
+
NS_SWIFT_NAME(NumberFormatter)
|
|
1146
|
+
@interface NSNumberFormatter : NSObject
|
|
1147
|
+
@end
|
|
1148
|
+
typedef NS_OPTIONS(NSUInteger, NSJSONReadingOptions) {
|
|
1149
|
+
NSJSONReadingMutableContainers = (1UL << 0),
|
|
1150
|
+
NSJSONReadingMutableLeaves = (1UL << 1),
|
|
1151
|
+
NSJSONReadingFragmentsAllowed = (1UL << 2),
|
|
1152
|
+
NSJSONReadingJSON5Allowed __attribute__((availability(ios,introduced=15.0))) = (1UL << 3),
|
|
1153
|
+
NSJSONReadingTopLevelDictionaryAssumed __attribute__((availability(ios,introduced=15.0))) = (1UL << 4),
|
|
1154
|
+
NSJSONReadingAllowFragments __attribute__((availability(ios,introduced=5.0,deprecated=100000,replacement="NSJSONReadingFragmentsAllowed"))) = NSJSONReadingFragmentsAllowed
|
|
1155
|
+
} __attribute__((availability(ios,introduced=5.0)));
|
|
1156
|
+
typedef NS_OPTIONS(NSUInteger, NSJSONWritingOptions) {
|
|
1157
|
+
NSJSONWritingPrettyPrinted = (1UL << 0),
|
|
1158
|
+
NSJSONWritingSortedKeys __attribute__((availability(ios,introduced=11.0))) = (1UL << 1),
|
|
1159
|
+
NSJSONWritingFragmentsAllowed = (1UL << 2),
|
|
1160
|
+
NSJSONWritingWithoutEscapingSlashes __attribute__((availability(ios,introduced=13.0))) = (1UL << 3),
|
|
1161
|
+
} __attribute__((availability(ios,introduced=5.0)));
|
|
1162
|
+
NS_SWIFT_NAME(JSONSerialization)
|
|
1163
|
+
__attribute__((availability(ios,introduced=5.0)))
|
|
1164
|
+
@interface NSJSONSerialization : NSObject
|
|
1165
|
+
+ (BOOL)isValidJSONObject:(id)obj;
|
|
1166
|
+
+ (nullable NSData *)dataWithJSONObject:(id)obj options:(NSJSONWritingOptions)opt error:(NSError * _Nullable * _Nullable)error;
|
|
1167
|
+
+ (nullable id)JSONObjectWithData:(NSData * _Nonnull)data options:(NSJSONReadingOptions)opt error:(NSError * _Nullable * _Nullable)error;
|
|
1168
|
+
@end
|
|
1169
|
+
typedef NS_OPTIONS(NSUInteger, NSPointerFunctionsOptions) {
|
|
1170
|
+
NSPointerFunctionsStrongMemory __attribute__((availability(ios,introduced=6.0))) = (0UL << 0),
|
|
1171
|
+
NSPointerFunctionsOpaqueMemory __attribute__((availability(ios,introduced=6.0))) = (2UL << 0),
|
|
1172
|
+
NSPointerFunctionsMallocMemory __attribute__((availability(ios,introduced=6.0))) = (3UL << 0),
|
|
1173
|
+
NSPointerFunctionsMachVirtualMemory __attribute__((availability(ios,introduced=6.0))) = (4UL << 0),
|
|
1174
|
+
NSPointerFunctionsWeakMemory __attribute__((availability(ios,introduced=6.0))) = (5UL << 0),
|
|
1175
|
+
NSPointerFunctionsObjectPersonality __attribute__((availability(ios,introduced=6.0))) = (0UL << 8),
|
|
1176
|
+
NSPointerFunctionsOpaquePersonality __attribute__((availability(ios,introduced=6.0))) = (1UL << 8),
|
|
1177
|
+
NSPointerFunctionsObjectPointerPersonality __attribute__((availability(ios,introduced=6.0))) = (2UL << 8),
|
|
1178
|
+
NSPointerFunctionsCStringPersonality __attribute__((availability(ios,introduced=6.0))) = (3UL << 8),
|
|
1179
|
+
NSPointerFunctionsStructPersonality __attribute__((availability(ios,introduced=6.0))) = (4UL << 8),
|
|
1180
|
+
NSPointerFunctionsIntegerPersonality __attribute__((availability(ios,introduced=6.0))) = (5UL << 8),
|
|
1181
|
+
NSPointerFunctionsCopyIn __attribute__((availability(ios,introduced=6.0))) = (1UL << 16)
|
|
1182
|
+
};
|
|
1183
|
+
__attribute__((availability(ios,introduced=6.0)))
|
|
1184
|
+
@interface NSPointerFunctions : NSObject <NSCopying>
|
|
1185
|
+
- (instancetype)initWithOptions:(NSPointerFunctionsOptions)options NS_DESIGNATED_INITIALIZER;
|
|
1186
|
+
+ (NSPointerFunctions *)pointerFunctionsWithOptions:(NSPointerFunctionsOptions)options;
|
|
1187
|
+
@end
|
|
1188
|
+
__attribute__((availability(ios,introduced=6.0)))
|
|
1189
|
+
@interface NSPointerArray : NSObject <NSFastEnumeration, NSCopying, NSSecureCoding>
|
|
1190
|
+
- (instancetype)initWithOptions:(NSPointerFunctionsOptions)options NS_DESIGNATED_INITIALIZER;
|
|
1191
|
+
- (instancetype)initWithPointerFunctions:(NSPointerFunctions *)functions NS_DESIGNATED_INITIALIZER;
|
|
1192
|
+
+ (NSPointerArray *)pointerArrayWithOptions:(NSPointerFunctionsOptions)options;
|
|
1193
|
+
+ (NSPointerArray *)pointerArrayWithPointerFunctions:(NSPointerFunctions *)functions;
|
|
1194
|
+
@property (readonly, copy) NSPointerFunctions *pointerFunctions;
|
|
1195
|
+
- (nullable void *)pointerAtIndex:(NSUInteger)index;
|
|
1196
|
+
- (void)addPointer:(nullable void *)pointer;
|
|
1197
|
+
- (void)removePointerAtIndex:(NSUInteger)index;
|
|
1198
|
+
- (void)insertPointer:(nullable void *)item atIndex:(NSUInteger)index;
|
|
1199
|
+
- (void)replacePointerAtIndex:(NSUInteger)index withPointer:(nullable void *)item;
|
|
1200
|
+
- (void)compact;
|
|
1201
|
+
@property NSUInteger count;
|
|
1202
|
+
@end
|
|
1203
|
+
@interface NSPointerArray (NSPointerArrayConveniences)
|
|
1204
|
+
+ (NSPointerArray *)strongObjectsPointerArray __attribute__((availability(ios,introduced=6.0)));
|
|
1205
|
+
+ (NSPointerArray *)weakObjectsPointerArray __attribute__((availability(ios,introduced=6.0)));
|
|
1206
|
+
@property (readonly, copy) NSArray *allObjects;
|
|
1207
|
+
@end
|
|
1208
|
+
@interface NSPredicate : NSObject <NSSecureCoding, NSCopying>
|
|
1209
|
+
@end
|
|
1210
|
+
@interface NSSortDescriptor : NSObject <NSSecureCoding, NSCopying>
|
|
1211
|
+
@end
|
|
1212
|
+
@protocol NSLocking
|
|
1213
|
+
- (void)lock NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use async-safe scoped locking instead");
|
|
1214
|
+
- (void)unlock NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Use async-safe scoped locking instead");
|
|
1215
|
+
@end
|
|
1216
|
+
@interface NSLock : NSObject <NSLocking>
|
|
1217
|
+
@end
|
|
1218
|
+
@protocol NSCacheDelegate <NSObject>
|
|
1219
|
+
@optional
|
|
1220
|
+
- (void)cache:(NSCache *)cache willEvictObject:(id)obj;
|
|
1221
|
+
@end
|
|
1222
|
+
@interface NSCache<KeyType, ObjectType> : NSObject
|
|
1223
|
+
- (void)setObject:(ObjectType)obj forKey:(KeyType)key cost:(NSUInteger)g;
|
|
1224
|
+
- (void)removeAllObjects;
|
|
1225
|
+
- (void)removeObjectForKey:(KeyType)key;
|
|
1226
|
+
- (nullable ObjectType)objectForKey:(KeyType)key;
|
|
1227
|
+
@property NSUInteger totalCostLimit;
|
|
1228
|
+
@property NSUInteger countLimit;
|
|
1229
|
+
@property (nullable, assign) id<NSCacheDelegate> delegate;
|
|
1230
|
+
@end
|
|
1231
|
+
@interface NSMapTable<KeyType, ObjectType> : NSObject <NSCopying, NSSecureCoding, NSFastEnumeration>
|
|
1232
|
+
- (void)removeAllObjects;
|
|
1233
|
+
+ (NSMapTable<KeyType, ObjectType> *)mapTableWithKeyOptions:(NSPointerFunctionsOptions)keyOptions valueOptions:(NSPointerFunctionsOptions)valueOptions;
|
|
1234
|
+
- (instancetype)initWithKeyOptions:(NSPointerFunctionsOptions)keyOptions valueOptions:(NSPointerFunctionsOptions)valueOptions capacity:(NSUInteger)initialCapacity NS_DESIGNATED_INITIALIZER;
|
|
1235
|
+
- (nullable ObjectType)objectForKey:(nullable KeyType)aKey;
|
|
1236
|
+
- (void)removeObjectForKey:(nullable KeyType)aKey;
|
|
1237
|
+
- (void)setObject:(nullable ObjectType)anObject forKey:(nullable KeyType)aKey;
|
|
1238
|
+
@end
|
|
1239
|
+
@interface NSHashTable<ObjectType> : NSObject <NSCopying, NSSecureCoding, NSFastEnumeration>
|
|
1240
|
+
@end
|
|
1241
|
+
NS_SWIFT_UNAVAILABLE("NSInvocation and related APIs not available")
|
|
1242
|
+
@interface NSMethodSignature : NSObject
|
|
1243
|
+
+ (nullable NSMethodSignature *)signatureWithObjCTypes:(const char *)types;
|
|
1244
|
+
@property (readonly) NSUInteger numberOfArguments;
|
|
1245
|
+
- (const char *)getArgumentTypeAtIndex:(NSUInteger)idx NS_RETURNS_INNER_POINTER;
|
|
1246
|
+
@property (readonly) NSUInteger frameLength;
|
|
1247
|
+
- (BOOL)isOneway;
|
|
1248
|
+
@property (readonly) const char *methodReturnType NS_RETURNS_INNER_POINTER;
|
|
1249
|
+
@property (readonly) NSUInteger methodReturnLength;
|
|
1250
|
+
@end
|
|
1251
|
+
NS_SWIFT_UNAVAILABLE("NSInvocation and related APIs not available")
|
|
1252
|
+
@interface NSInvocation : NSObject
|
|
1253
|
+
+ (NSInvocation *)invocationWithMethodSignature:(NSMethodSignature *)sig;
|
|
1254
|
+
@property (readonly, retain) NSMethodSignature *methodSignature;
|
|
1255
|
+
- (void)retainArguments;
|
|
1256
|
+
@property (readonly) BOOL argumentsRetained;
|
|
1257
|
+
@property (nullable, assign) id target;
|
|
1258
|
+
@property SEL selector;
|
|
1259
|
+
- (void)getReturnValue:(void *)retLoc;
|
|
1260
|
+
- (void)setReturnValue:(void *)retLoc;
|
|
1261
|
+
- (void)getArgument:(void *)argumentLocation atIndex:(NSInteger)idx;
|
|
1262
|
+
- (void)setArgument:(void *)argumentLocation atIndex:(NSInteger)idx;
|
|
1263
|
+
- (void)invoke;
|
|
1264
|
+
- (void)invokeWithTarget:(id)target;
|
|
1265
|
+
- (void)invokeUsingIMP:(IMP)imp;
|
|
1266
|
+
@end
|
|
1267
|
+
@interface NSUndoManager : NSObject
|
|
1268
|
+
@end
|
|
1269
|
+
@interface NSItemProvider : NSObject <NSCopying>
|
|
1270
|
+
@end
|
|
1271
|
+
@interface NSUserActivity : NSObject
|
|
1272
|
+
@property (readonly, copy) NSString *activityType;
|
|
1273
|
+
@property (nullable, copy) NSURL *webpageURL;
|
|
1274
|
+
@property (nullable, copy) NSURL *referrerURL __attribute__((availability(macos,introduced=10.13), availability(ios,introduced=11.0), availability(watchos,introduced=4.0), availability(tvos,introduced=11.0)));
|
|
1275
|
+
@end
|
|
1276
|
+
|
|
1277
|
+
FOUNDATION_EXPORT NSString *NSStringFromSelector(SEL aSelector);
|
|
1278
|
+
FOUNDATION_EXPORT SEL NSSelectorFromString(NSString *aSelectorName);
|
|
1279
|
+
FOUNDATION_EXPORT NSString *NSStringFromClass(Class aClass);
|
|
1280
|
+
FOUNDATION_EXPORT void NSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2) NS_SWIFT_UNAVAILABLE("Use print or os_log");
|
|
1281
|
+
#define NSLocalizedStringFromTableInBundle(key, tbl, bundle, comment) [bundle localizedStringForKey:(key) value:@"" table:(tbl)]
|
|
1282
|
+
FOUNDATION_EXPORT NSLocaleKey const NSLocaleCountryCode;
|
|
1283
|
+
FOUNDATION_EXPORT NSLocaleKey const NSLocaleLanguageCode;
|
|
1284
|
+
|
|
1285
|
+
@interface NSObject (NSDelayedPerforming)
|
|
1286
|
+
- (void)performSelector:(SEL)aSelector withObject:(nullable id)anArgument afterDelay:(NSTimeInterval)delay;
|
|
1287
|
+
@end
|
|
1288
|
+
@interface NSKeyedUnarchiver : NSCoder
|
|
1289
|
+
@property (readwrite) BOOL requiresSecureCoding __attribute__((availability(macos,introduced=10.8), availability(ios,introduced=6.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1290
|
+
- (nullable instancetype)initForReadingFromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=10.13), availability(ios,introduced=11.0), availability(watchos,introduced=4.0), availability(tvos,introduced=11.0)));
|
|
1291
|
+
+ (nullable id)unarchiveObjectWithData:(NSData *)data __attribute__((availability(macosx,introduced=10.2,deprecated=10.14,message="Use +unarchivedObjectOfClass:fromData:error: instead"), availability(ios,introduced=2.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"), availability(watchos,introduced=2.0,deprecated=5.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"), availability(tvos,introduced=9.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead")));
|
|
1292
|
+
+ (nullable id)unarchivedObjectOfClass:(Class)cls fromData:(NSData *)data error:(NSError **)error __attribute__((availability(macos,introduced=10.13), availability(ios,introduced=11.0), availability(watchos,introduced=4.0), availability(tvos,introduced=11.0))) NS_REFINED_FOR_SWIFT;
|
|
1293
|
+
+ (nullable id)unarchiveTopLevelObjectWithData:(NSData *)data error:(NSError **)error __attribute__((availability(macosx,introduced=10.11,deprecated=10.14,message="Use +unarchivedObjectOfClass:fromData:error: instead"), availability(ios,introduced=2.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"), availability(watchos,introduced=2.0,deprecated=5.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"), availability(tvos,introduced=9.0,deprecated=12.0,message="Use +unarchivedObjectOfClass:fromData:error: instead"))) NS_SWIFT_UNAVAILABLE("Use 'unarchiveTopLevelObjectWithData(_:) throws' instead");
|
|
1294
|
+
@end
|
|
1295
|
+
typedef NS_OPTIONS(NSUInteger, NSPropertyListMutabilityOptions) { NSPropertyListImmutable = kCFPropertyListImmutable, NSPropertyListMutableContainers = kCFPropertyListMutableContainers, NSPropertyListMutableContainersAndLeaves = kCFPropertyListMutableContainersAndLeaves };
|
|
1296
|
+
typedef NS_ENUM(NSUInteger, NSPropertyListFormat) { NSPropertyListOpenStepFormat = kCFPropertyListOpenStepFormat, NSPropertyListXMLFormat_v1_0 = kCFPropertyListXMLFormat_v1_0, NSPropertyListBinaryFormat_v1_0 = kCFPropertyListBinaryFormat_v1_0 };
|
|
1297
|
+
typedef NSPropertyListMutabilityOptions NSPropertyListReadOptions;
|
|
1298
|
+
typedef NSUInteger NSPropertyListWriteOptions;
|
|
1299
|
+
@interface NSPropertyListSerialization : NSObject
|
|
1300
|
+
+ (nullable NSData *)dataWithPropertyList:(id)plist format:(NSPropertyListFormat)format options:(NSPropertyListWriteOptions)opt error:(out NSError **)error __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1301
|
+
+ (nullable id)propertyListWithData:(NSData *)data options:(NSPropertyListReadOptions)opt format:(nullable NSPropertyListFormat *)format error:(out NSError **)error __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1302
|
+
@end
|
|
1303
|
+
NS_ASSUME_NONNULL_END
|
|
1304
|
+
FOUNDATION_EXPORT NSURLResourceKey const NSURLIsDirectoryKey __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1305
|
+
FOUNDATION_EXPORT NSURLResourceKey const NSURLCreationDateKey __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1306
|
+
FOUNDATION_EXPORT NSURLResourceKey const NSURLContentAccessDateKey __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1307
|
+
FOUNDATION_EXPORT NSURLResourceKey const NSURLContentModificationDateKey __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1308
|
+
FOUNDATION_EXPORT NSURLResourceKey const NSURLAttributeModificationDateKey __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1309
|
+
FOUNDATION_EXPORT NSURLResourceKey const NSURLIsExcludedFromBackupKey __attribute__((availability(macos,introduced=10.8), availability(ios,introduced=5.1), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1310
|
+
FOUNDATION_EXPORT NSErrorDomain const NSPOSIXErrorDomain;
|
|
1311
|
+
FOUNDATION_EXPORT NSExceptionName const NSInternalInconsistencyException;
|
|
1312
|
+
@interface NSTextCheckingResult : NSObject <NSCopying, NSSecureCoding>
|
|
1313
|
+
@property (readonly) NSRange range;
|
|
1314
|
+
- (NSRange)rangeAtIndex:(NSUInteger)idx __attribute__((availability(macos,introduced=10.7), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1315
|
+
@end
|
|
1316
|
+
typedef NS_OPTIONS(NSUInteger, NSRegularExpressionOptions) {
|
|
1317
|
+
NSRegularExpressionCaseInsensitive = 1 << 0,
|
|
1318
|
+
NSRegularExpressionAllowCommentsAndWhitespace = 1 << 1,
|
|
1319
|
+
NSRegularExpressionIgnoreMetacharacters = 1 << 2,
|
|
1320
|
+
NSRegularExpressionDotMatchesLineSeparators = 1 << 3,
|
|
1321
|
+
NSRegularExpressionAnchorsMatchLines = 1 << 4,
|
|
1322
|
+
NSRegularExpressionUseUnixLineSeparators = 1 << 5,
|
|
1323
|
+
NSRegularExpressionUseUnicodeWordBoundaries = 1 << 6
|
|
1324
|
+
};
|
|
1325
|
+
typedef NS_OPTIONS(NSUInteger, NSMatchingOptions) {
|
|
1326
|
+
NSMatchingReportProgress = 1 << 0,
|
|
1327
|
+
NSMatchingReportCompletion = 1 << 1,
|
|
1328
|
+
NSMatchingAnchored = 1 << 2,
|
|
1329
|
+
NSMatchingWithTransparentBounds = 1 << 3,
|
|
1330
|
+
NSMatchingWithoutAnchoringBounds = 1 << 4
|
|
1331
|
+
};
|
|
1332
|
+
typedef NS_OPTIONS(NSUInteger, NSMatchingFlags) {
|
|
1333
|
+
NSMatchingProgress = 1 << 0,
|
|
1334
|
+
NSMatchingCompleted = 1 << 1,
|
|
1335
|
+
NSMatchingHitEnd = 1 << 2,
|
|
1336
|
+
NSMatchingRequiredEnd = 1 << 3,
|
|
1337
|
+
NSMatchingInternalError = 1 << 4
|
|
1338
|
+
};
|
|
1339
|
+
@interface NSRegularExpression : NSObject <NSCopying, NSSecureCoding>
|
|
1340
|
+
+ (nullable NSRegularExpression *)regularExpressionWithPattern:(NSString *)pattern options:(NSRegularExpressionOptions)options error:(NSError **)error;
|
|
1341
|
+
- (void)enumerateMatchesInString:(NSString *)string options:(NSMatchingOptions)options range:(NSRange)range usingBlock:(void (NS_NOESCAPE ^)(NSTextCheckingResult * _Nullable result, NSMatchingFlags flags, BOOL *stop))block;
|
|
1342
|
+
@end
|
|
1343
|
+
NS_ROOT_CLASS
|
|
1344
|
+
@interface NSProxy <NSObject>
|
|
1345
|
+
+ (id)alloc;
|
|
1346
|
+
- (void)forwardInvocation:(NSInvocation *)invocation;
|
|
1347
|
+
@end
|
|
1348
|
+
@interface NSObject (NSKeyValueObserverNotification)
|
|
1349
|
+
- (void)observeValueForKeyPath:(nullable NSString *)keyPath ofObject:(nullable id)object change:(nullable NSDictionary<NSKeyValueChangeKey, id> *)change context:(nullable void *)context;
|
|
1350
|
+
- (void)willChangeValueForKey:(NSString *)key NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Only notify of changes to a key in a synchronous context. Notifying changes across suspension points has undefined behavior.");
|
|
1351
|
+
- (void)didChangeValueForKey:(NSString *)key NS_SWIFT_UNAVAILABLE_FROM_ASYNC("Only notify of changes to a key in a synchronous context. Notifying changes across suspension points has undefined behavior.");
|
|
1352
|
+
- (void)addObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath options:(NSKeyValueObservingOptions)options context:(nullable void *)context;
|
|
1353
|
+
- (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath context:(nullable void *)context __attribute__((availability(macos,introduced=10.7), availability(ios,introduced=5.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1354
|
+
@end
|
|
1355
|
+
@interface NSBlockOperation : NSOperation
|
|
1356
|
+
+ (instancetype)blockOperationWithBlock:(void (NS_SWIFT_SENDABLE ^)(void))block;
|
|
1357
|
+
@end
|
|
1358
|
+
@interface NSURLCache : NSObject
|
|
1359
|
+
- (nullable NSCachedURLResponse *)cachedResponseForRequest:(NSURLRequest *)request;
|
|
1360
|
+
@property (class, strong) NSURLCache *sharedURLCache;
|
|
1361
|
+
@end
|
|
1362
|
+
FOUNDATION_EXPORT const float NSURLSessionTaskPriorityDefault __attribute__((availability(macos,introduced=10.10), availability(ios,introduced=8.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1363
|
+
FOUNDATION_EXPORT const float NSURLSessionTaskPriorityLow __attribute__((availability(macos,introduced=10.10), availability(ios,introduced=8.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1364
|
+
FOUNDATION_EXPORT const float NSURLSessionTaskPriorityHigh __attribute__((availability(macos,introduced=10.10), availability(ios,introduced=8.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1365
|
+
FOUNDATION_EXPORT NSRunLoopMode const NSDefaultRunLoopMode;
|
|
1366
|
+
FOUNDATION_EXPORT NSRunLoopMode const NSRunLoopCommonModes __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1367
|
+
FOUNDATION_EXPORT NSString * const NSKeyedArchiveRootObjectKey __attribute__((availability(macos,introduced=10.9), availability(ios,introduced=7.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1368
|
+
FOUNDATION_EXPORT NSURLResourceKey const NSURLFileSizeKey __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=4.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1369
|
+
FOUNDATION_EXPORT NSURLResourceKey const NSURLTotalFileAllocatedSizeKey __attribute__((availability(macos,introduced=10.7), availability(ios,introduced=5.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1370
|
+
#define NSURLResponseUnknownLength ((long long)-1)
|
|
1371
|
+
@class NSURLProtectionSpace;
|
|
1372
|
+
@interface NSURLAuthenticationChallenge : NSObject <NSSecureCoding>
|
|
1373
|
+
@property (readonly, copy) NSURLProtectionSpace *protectionSpace;
|
|
1374
|
+
@property (readonly) NSInteger previousFailureCount;
|
|
1375
|
+
@end
|
|
1376
|
+
@interface NSURLProtectionSpace : NSObject <NSSecureCoding, NSCopying>
|
|
1377
|
+
@property (readonly, copy) NSString *authenticationMethod;
|
|
1378
|
+
@property (nullable, readonly) SecTrustRef serverTrust __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=3.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1379
|
+
@end
|
|
1380
|
+
@interface NSCachedURLResponse : NSObject <NSSecureCoding, NSCopying>
|
|
1381
|
+
@property (readonly, copy) NSURLResponse *response;
|
|
1382
|
+
@property (readonly, copy) NSData *data;
|
|
1383
|
+
@end
|
|
1384
|
+
FOUNDATION_EXPORT NSString * const NSURLAuthenticationMethodServerTrust __attribute__((availability(macos,introduced=10.6), availability(ios,introduced=3.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)));
|
|
1385
|
+
FOUNDATION_EXPORT NSErrorDomain const NSURLErrorDomain;
|
|
1386
|
+
NS_ERROR_ENUM(NSURLErrorDomain)
|
|
1387
|
+
{
|
|
1388
|
+
NSURLErrorUnknown = -1,
|
|
1389
|
+
NSURLErrorCancelled = -999,
|
|
1390
|
+
NSURLErrorBadURL = -1000,
|
|
1391
|
+
NSURLErrorTimedOut = -1001,
|
|
1392
|
+
NSURLErrorUnsupportedURL = -1002,
|
|
1393
|
+
NSURLErrorCannotFindHost = -1003,
|
|
1394
|
+
NSURLErrorCannotConnectToHost = -1004,
|
|
1395
|
+
NSURLErrorNetworkConnectionLost = -1005,
|
|
1396
|
+
NSURLErrorDNSLookupFailed = -1006,
|
|
1397
|
+
NSURLErrorHTTPTooManyRedirects = -1007,
|
|
1398
|
+
NSURLErrorResourceUnavailable = -1008,
|
|
1399
|
+
NSURLErrorNotConnectedToInternet = -1009,
|
|
1400
|
+
NSURLErrorRedirectToNonExistentLocation = -1010,
|
|
1401
|
+
NSURLErrorBadServerResponse = -1011,
|
|
1402
|
+
NSURLErrorUserCancelledAuthentication = -1012,
|
|
1403
|
+
NSURLErrorUserAuthenticationRequired = -1013,
|
|
1404
|
+
NSURLErrorZeroByteResource = -1014,
|
|
1405
|
+
NSURLErrorCannotDecodeRawData = -1015,
|
|
1406
|
+
NSURLErrorCannotDecodeContentData = -1016,
|
|
1407
|
+
NSURLErrorCannotParseResponse = -1017,
|
|
1408
|
+
NSURLErrorAppTransportSecurityRequiresSecureConnection __attribute__((availability(macos,introduced=10.11), availability(ios,introduced=9.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) = -1022,
|
|
1409
|
+
NSURLErrorFileDoesNotExist = -1100,
|
|
1410
|
+
NSURLErrorFileIsDirectory = -1101,
|
|
1411
|
+
NSURLErrorNoPermissionsToReadFile = -1102,
|
|
1412
|
+
NSURLErrorDataLengthExceedsMaximum __attribute__((availability(macos,introduced=10.5), availability(ios,introduced=2.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) = -1103,
|
|
1413
|
+
NSURLErrorFileOutsideSafeArea __attribute__((availability(macos,introduced=10.12.4), availability(ios,introduced=10.3), availability(watchos,introduced=3.2), availability(tvos,introduced=10.2))) = -1104,
|
|
1414
|
+
|
|
1415
|
+
NSURLErrorSecureConnectionFailed = -1200,
|
|
1416
|
+
NSURLErrorServerCertificateHasBadDate = -1201,
|
|
1417
|
+
NSURLErrorServerCertificateUntrusted = -1202,
|
|
1418
|
+
NSURLErrorServerCertificateHasUnknownRoot = -1203,
|
|
1419
|
+
NSURLErrorServerCertificateNotYetValid = -1204,
|
|
1420
|
+
NSURLErrorClientCertificateRejected = -1205,
|
|
1421
|
+
NSURLErrorClientCertificateRequired = -1206,
|
|
1422
|
+
NSURLErrorCannotLoadFromNetwork = -2000,
|
|
1423
|
+
|
|
1424
|
+
NSURLErrorCannotCreateFile = -3000,
|
|
1425
|
+
NSURLErrorCannotOpenFile = -3001,
|
|
1426
|
+
NSURLErrorCannotCloseFile = -3002,
|
|
1427
|
+
NSURLErrorCannotWriteToFile = -3003,
|
|
1428
|
+
NSURLErrorCannotRemoveFile = -3004,
|
|
1429
|
+
NSURLErrorCannotMoveFile = -3005,
|
|
1430
|
+
NSURLErrorDownloadDecodingFailedMidStream = -3006,
|
|
1431
|
+
NSURLErrorDownloadDecodingFailedToComplete =-3007,
|
|
1432
|
+
|
|
1433
|
+
NSURLErrorInternationalRoamingOff __attribute__((availability(macos,introduced=10.7), availability(ios,introduced=3.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) = -1018,
|
|
1434
|
+
NSURLErrorCallIsActive __attribute__((availability(macos,introduced=10.7), availability(ios,introduced=3.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) = -1019,
|
|
1435
|
+
NSURLErrorDataNotAllowed __attribute__((availability(macos,introduced=10.7), availability(ios,introduced=3.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) = -1020,
|
|
1436
|
+
NSURLErrorRequestBodyStreamExhausted __attribute__((availability(macos,introduced=10.7), availability(ios,introduced=3.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) = -1021,
|
|
1437
|
+
|
|
1438
|
+
NSURLErrorBackgroundSessionRequiresSharedContainer __attribute__((availability(macos,introduced=10.10), availability(ios,introduced=8.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) = -995,
|
|
1439
|
+
NSURLErrorBackgroundSessionInUseByAnotherProcess __attribute__((availability(macos,introduced=10.10), availability(ios,introduced=8.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0))) = -996,
|
|
1440
|
+
NSURLErrorBackgroundSessionWasDisconnected __attribute__((availability(macos,introduced=10.10), availability(ios,introduced=8.0), availability(watchos,introduced=2.0), availability(tvos,introduced=9.0)))= -997,
|
|
1441
|
+
};
|