티스토리 뷰

Framework

Foundation

Access essential data types, collections, and operating-system services to define the base layer of functionality for your app.

 

Numbers, Data, and Basic Values

Work with primitive values and other fundamental types used throughout Cocoa.

Numbers

struct Int

A signed integer value type.

struct Double

A double-precision, floating-point value type.

struct Decimal

A structure representing a base-10 number.

class NumberFormatter

A formatter that converts between numeric values and their textual representations.

Binary Data

struct Data

A byte buffer in memory.

protocol DataProtocol

protocol MutableDataProtocol

protocol ContiguousBytes

URLs

struct URL

A value that identifies the location of a resource, such as an item on a remote server or the path to a local file.

struct URLComponents

A structure that parses URLs into and constructs URLs from their constituent parts. 

struct URLQueryItem

A single name-value pair from the query portion of a URL.

 

Unique Identifiers

struct UUID

A universally unique value that can be used to identify types, interfaces, and other items.

 

Geometry

struct CGFloat

The basic type for floating-point scalar values in Core Graphics and related frameworks.

typealias NSPoint

A point in a Cartesian coordinate system.

typealias NSSize

A two-dimensional size.

typealias NSRect

A rectangle.

struct AffineTransform

A graphics coordinate transformation. 

struct NSEdgeInsets

A description of the distance between the edges of two rectangles.

Ranges

typealias NSRange

A structure used to describe a portion of a series, such as characters in a string or objects in an array.

 

 

Strings and Text

Create and process strings of Unicode characters, use regular expressions to find patterns, and perform natural language analysis of text.

Strings

struct String

A Unicode string value that is a collection of characters.

String Encodings

Strings with Metadata

class NSAttributedString

A string with associated attributes (such as visual style, hyperlinks, or accessibility data) for portions of its text.

class NSMutableAttributedString

A mutable string object that also contains attributes (such as visual style, hyperlinks, or accessibility data) associated with various portions of its text content. 

Characters

struct CharacterSet

A set of Unicode character values for use in search operations.

typealias UnicodeScalar

Natural Language Processing

class NSLinguisticTagger

Analyze natural language text to tag part of speech and lexical class, identify names, perform lemmatization, and determine the language and script.

Deprecated

Pattern Matching

class Scanner

A string parser that scans for substrings or characters in a character set, and for numeric values from decimal, hexadecimal, and floating-point representations.

class NSRegularExpression

An immutable representation of a compiled regular expression that you apply to Unicode strings. 

class NSDataDetector

A specialized regular expression object that matches natural language text for predefined data patterns.

class NSTextCheckingResult

An occurrence of textual content found during the analysis of a block of text, such as when matching a regular expression.

let NSNotFound: Int

A value indicating that a requested item couldn’t be found or doesn’t exist.

Spelling and Grammar

class NSSpellServer

A server that your app uses to provide a spell checker service to other apps running in the system.

protocol NSSpellServerDelegate

The optional methods implemented by the delegate of a spell server.

Localization

struct Locale

Information about linguistic, cultural, and technological conventions for use in formatting data for presentation.

class NSOrthography

A description of the linguistic content of natural language text, typically used for spelling and grammar checking.

func NSLocalizedString(String, tableName: String?, bundle: Bundle, value: String, comment: String) -> String

Returns a localized string, using the main bundle if one is not specified.

 

 

 

Collections

Use arrays, dictionaries, sets, and specialized collections to store and iterate groups of objects or values.

Basic Collections

struct Array

An ordered, random-access collection.

struct Dictionary

A collection whose elements are key-value pairs.

struct Set

An unordered collection of unique elements.

Indexes

struct IndexPath

A list of indexes that together represent the path to a specific location in a tree of nested arrays. 

struct IndexSet

A collection of unique integer values that represent the indexes of elements in another collection. 

Specialized Sets

class NSCountedSet

A mutable, unordered collection of distinct objects that may appear more than once in the collection.

class NSOrderedSet

A static, ordered collection of unique objects.

class NSMutableOrderedSet

A dynamic, ordered collection of unique objects.

Purgeable Collections

class NSCache

A mutable collection you use to temporarily store transient key-value pairs that are subject to eviction when resources are low.

class NSPurgeableData

A mutable data object containing bytes that can be discarded when they're no longer needed.

Pointer Collections

class NSPointerArray

A collection similar to an array, but with a broader range of available memory semantics.

class NSMapTable

A collection similar to a dictionary, but with a broader range of available memory semantics.

class NSHashTable

A collection similar to a set, but with broader range of available memory semantics.

Iteration

class NSEnumerator

An abstract class whose subclasses enumerate collections of objects, such as arrays and dictionaries.

protocol NSFastEnumeration

A protocol that objects adopt to support fast enumeration.

struct NSFastEnumerationIterator

struct NSIndexSetIterator

An iterator suitable for enumerating the elements of an index set.

struct NSEnumerationOptions

Options for block enumeration operations.

struct NSSortOptions

Options for block sorting operations.

Special Semantic Values

class NSNull

A singleton object used to represent null values in collection objects that don’t allow nilvalues.

let NSNotFound: Int

let NSNotFound: Int

A value indicating that a requested item couldn’t be found or doesn’t exist.

 

 

 

Dates and Times

Compare dates and times, and perform calendar and time zone calculations.

Date Representations

struct Date

A specific point in time, independent of any calendar or time zone.

struct DateInterval

The span of time between a specific start date and end date.

typealias TimeInterval

A number of seconds.

Calendrical Calculations

struct DateComponents

A date or time specified in terms of units (such as year, month, day, hour, and minute) to be evaluated in a calendar system and time zone. 

struct Calendar

A definition of the relationships between calendar units (such as eras, years, and weekdays) and absolute points in time, providing features for calculation and comparison of dates. 

struct TimeZone

Information about standard time conventions associated with a specific geopolitical region.

Date Formatting

class DateFormatter

A formatter that converts between dates and their textual representations. 

class DateComponentsFormatter

A formatter that creates string representations of quantities of time. 

class DateIntervalFormatter

A formatter that creates string representations of time intervals.

class ISO8601DateFormatter

A formatter that converts between dates and their ISO 8601 string representations.

Internationalization

struct Locale

Information about linguistic, cultural, and technological conventions for use in formatting data for presentation.

 

 

 

Units and Measurement

Label numeric quantities with physical dimensions to allow locale-aware formatting and conversion between related units.

First Steps

struct Measurement

A numeric quantity labeled with a unit of measure, with support for unit conversion and unit-aware calculations. 

class Unit

An abstract class representing a unit of measure. 

class Dimension

An abstract class representing a dimensional unit of measure. 

Conversion

class UnitConverter

An abstract class that provides a description of how to convert a unit to and from the base unit of its dimension.

class UnitConverterLinear

A description of how to convert between units using a linear equation.

Physical Dimension

class UnitArea

A unit of measure for area.

class UnitLength

A unit of measure for length.

class UnitVolume

A unit of measure for volume.

class UnitAngle

A unit of measure for rotation.

Mass, Weight, and Force

class UnitMass

A unit of measure for mass.

class UnitPressure

A unit of measure for pressure.

Time and Motion

class UnitAcceleration

A unit of measure for acceleration.

class UnitDuration

A unit of measure for duration of time.

class UnitFrequency

A unit of measure for frequency.

class UnitSpeed

A unit of measure for speed.

Energy, Heat, and Light

class UnitEnergy

A unit of measure for energy.

class UnitPower

A unit of measure for power.

class UnitTemperature

A unit of measure for temperature.

class UnitIlluminance

A unit of measure for luminance.

Electricity

class UnitElectricCharge

A unit of measure for electric charge.

class UnitElectricCurrent

A unit of measure for electric current.

class UnitElectricPotentialDifference

A unit of measure for electric potential difference.

class UnitElectricResistance

A unit of measure for electric resistance.

Concentration and Dispersion

class UnitConcentrationMass

A unit of measure for concentration of mass.

class UnitDispersion

A unit of measure for an amount-of-substance fraction.

Fuel Efficiency

class UnitFuelEfficiency

A unit of measure for fuel efficiency.

Data Storage

class UnitInformationStorage

Data Formatting

Convert numbers, dates, measurements, and other values to and from locale-aware string representations.

First Steps

Displaying Human-Friendly Content

Convert data into readable strings or Swift objects using formatters.

Numbers and Currency

class NumberFormatter

A formatter that converts between numeric values and their textual representations.

Names

class PersonNameComponentsFormatter

A formatter that provides localized representations of the components of a person’s name.

struct PersonNameComponents

The separate parts of a person's name, allowing locale-aware formatting. 

Dates and Times

class DateFormatter

A formatter that converts between dates and their textual representations. 

class DateComponentsFormatter

A formatter that creates string representations of quantities of time. 

class RelativeDateTimeFormatter

A formatter that creates locale-aware string representations of a relative date or time.

class DateIntervalFormatter

A formatter that creates string representations of time intervals.

class ISO8601DateFormatter

A formatter that converts between dates and their ISO 8601 string representations.

Data Sizes

class ByteCountFormatter

A formatter that converts a byte count value into a localized description that is formatted with the appropriate byte modifier (KB, MB, GB and so on).

Measurements

class MeasurementFormatter

A formatter that provides localized representations of units and measurements.

Lists

class ListFormatter

An object that provides locale-correct formatting of a list of items using the appropriate separator and conjunction.

Internationalization

struct Locale

Information about linguistic, cultural, and technological conventions for use in formatting data for presentation.

Custom Formatters

class Formatter

An abstract class that declares an interface for objects that create, interpret, and validate the textual representation of values. 

Deprecated

class LengthFormatter

A formatter that provides localized descriptions of linear distances, such as length and height measurements.

class MassFormatter

A formatter that provides localized descriptions of mass and weight values.

class EnergyFormatter

A formatter that provides localized descriptions of energy values.

 

 

 

Filters and Sorting

Use predicates, expressions, and sort descriptors to examine elements in collections and other services.

Filtering

class NSPredicate

A definition of logical conditions used to constrain a search either for a fetch or for in-memory filtering.

class NSExpression

An expression for use in a comparison predicate.

class NSComparisonPredicate

A specialized predicate that you use to compare expressions.

class NSCompoundPredicate

A specialized predicate that evaluates logical combinations of other predicates.

Sorting

class NSSortDescriptor

An immutable description of how to order a collection of objects based on a property common to all the objects.

enum ComparisonResult

 

 

 

Task Management

Manage your app’s work and how it interacts with system services like Handoff and Shortcuts.

Undo

class UndoManager

A general-purpose recorder of operations that enables undo and redo. 

Progress

protocol ProgressReporting

An interface for objects that report progress using a single progress instance.

class Progress

An object that conveys ongoing progress for a given task to the user.

Operations

class Operation

An abstract class that represents the code and data associated with a single task.

class OperationQueue

A queue that regulates the execution of operations.

class BlockOperation

An operation that manages the concurrent execution of one or more blocks.

Scheduling

class Timer

A timer that fires after a certain time interval has elapsed, sending a specified message to a target object.

Activity Sharing

Share the user’s current activity with Handoff, Spotlight, and Siri Shortcuts.

Increasing App Usage with Suggestions Based on User Activities

Provide a continuous user experience by capturing information from your app and displaying this information as proactive suggestions across the system.

Continuing User Activities with Handoff

Define and manage which of your app’s activities can be continued between devices.

Implementing Handoff in Your App

Create, send, and receive user activities directly.

class NSUserActivity

A representation of the state of your app at a moment in time.

protocol NSUserActivityDelegate

The interface through which a user activity instance notifies its delegate of updates.

System Interaction

class ProcessInfo

A collection of information about the current process.

class NSBackgroundActivityScheduler

A task scheduler suitable for low priority operations that can run in the background.

Combine Integration

typealias Published

A type alias for the Combine framework’s type that publishes a property marked with an attribute.

typealias ObservableObject

A type alias for the Combine framework’s type for an object with a publisher that emits before the object has changed.

 

 

Resources

Access assets and other data bundled with your app.

Bundle Resources

class Bundle

A representation of the code and resources stored in a bundle directory on disk. 

On-Demand Resources

class NSBundleResourceRequest

A resource manager you use to download content hosted on the App Store at the time your app needs it.

 

 

Notifications

Design patterns for broadcasting information and for subscribing to broadcasts. 

NSKeyValueObserving

An informal protocol that objects adopt to be notified of changes to the specified properties of other objects.

Notifications

struct Notification

A container for information broadcast through a notification center to all registered observers. 

class NotificationCenter

A notification dispatch mechanism that enables the broadcast of information to registered observers.

class NotificationQueue

A notification center buffer.

Cross-Process Notifications

class DistributedNotificationCenter

A notification dispatch mechanism that enables the broadcast of notifications across task boundaries.

 

 

App Extension Support

Manage the interaction between an app extension and its hosting app.

Extension Support

protocol NSExtensionRequestHandling

The interface an app extension uses to respond to a request from a host app.

class NSExtensionContext

The host app context from which an app extension is invoked.

Share Extensions

Supporting Suggestions in Your App’s Share Extension

Make your messaging app available for share sheet suggestions and use SiriKit intents to populate your app’s share extension.

Attachments

class NSItemProvider

An item provider for conveying data or a file between processes during drag and drop or copy/paste activities, or from a host app to an app extension.

class NSExtensionItem

An immutable collection of values representing different aspects of an item for an extension to act upon.

Add Functionality to Finder with Action Extensions

Implement Action Extensions to provide quick access to commonly used features of your app.

Host App Interaction

class NSUserActivity

A representation of the state of your app at a moment in time.

protocol NSUserActivityDelegate

The interface through which a user activity instance notifies its delegate of updates.

 

 

Errors and Exceptions

Respond to problem situations in your interactions with APIs, and fine-tune your app for better debugging.

User-Relevant Errors

protocol Error

A type representing an error value that can be thrown.

class NSError

Information about an error condition including a domain, a domain-specific error code, and application-specific information.

protocol LocalizedError

A specialized error that provides localized messages describing the error and why it occurred.

protocol RecoverableError

A specialized error that may be recoverable by presenting several potential recovery options to the user.

protocol CustomNSError

A specialized error that provides a domain, error code, and user-info dictionary.

Assertions

class NSAssertionHandler

An object that logs an assertion to the console.

Exceptions

class NSException

An object that represents a special condition that interrupts the normal flow of program execution.

Diagnostics and Debugging

func NSLogv(String, CVaListPointer)

Logs an error message to the Apple System Log facility.

func NSLog(String, CVarArg...)

Logs an error message to the Apple System Log facility.

 

 

Scripting Support

Allow users to control your app with AppleScript and other automation technologies, or run scripts from within your app.

Script Execution

class NSAppleScript

An object that provides the ability to load, compile, and execute scripts.

Apple Event Handling

class NSAppleEventDescriptor

A wrapper for the Apple event descriptor data type.

class NSAppleEventManager

A mechanism for registering handler routines for specific types of Apple events and dispatching events to those handlers.

Script Commands

class NSScriptCommand

A self-contained scripting statement.

class NSQuitCommand

A command that quits the specified app.

class NSSetCommand

A command that sets one or more attributes or relationships to one or more values.

class NSMoveCommand

A command that moves one or more scriptable objects.

class NSCreateCommand

A command that creates a scriptable object.

class NSDeleteCommand

A command that deletes a scriptable object.

class NSExistsCommand

A command that determines whether a scriptable object exists.

class NSGetCommand

A command that retrieves a value or object from a scriptable object.

class NSCloneCommand

A command that clones one or more scriptable objects.

class NSCountCommand

A command that counts the number of objects of a specified class in the specified object container.

class NSCloseCommand

A command that closes one or more scriptable objects.

Object Specifiers

class NSScriptObjectSpecifier

An abstract class used to represent natural language expressions.

class NSPropertySpecifier

A specifier for a simple attribute value, a one-to-one relationship, or all elements of a to-many relationship.

class NSPositionalSpecifier

A specifier for an insertion point in a container relative to another object in the container.

class NSRandomSpecifier

A specifier for an arbitrary object in a collection or, if not a one-to-many relationship, the sole object.

class NSRangeSpecifier

A specifier for a range of objects in a container.

class NSUniqueIDSpecifier

A specifier for an object in a collection (or container) by unique ID.

class NSWhoseSpecifier

A specifier that indicates every object in a collection matching a condition.

class NSNameSpecifier

A specifier for an object in a collection (or container) by name.

class NSMiddleSpecifier

A specifier indicating the middle object in a collection or, if not a one-to-many relationship, the sole object.

class NSIndexSpecifier

A specifier representing an object in a collection (or container) with an index number.

class NSRelativeSpecifier

A specifier that indicates an object in a collection by its position relative to another object. 

Script Dictionary Description

class NSScriptSuiteRegistry

The top-level repository of scriptability information for an app at runtime.

class NSScriptClassDescription

A scriptable class that a macOS app supports.

class NSClassDescription

An abstract class that provides the interface for querying the relationships and properties of a class.

class NSScriptCommandDescription

A script command that a macOS app supports.

Object Matching Tests

class NSScriptWhoseTest

An abstract class that provides the basis for testing specifiers one at a time or in groups.

class NSSpecifierTest

A comparison between an object specifier and a test object.

class NSLogicalTest

The logical combination of one or more specifier tests.

NSObject Script Support

NSComparisonMethods

A collection of default comparison methods useful for performing specifier tests. 

NSScriptingComparisonMethods

A collection of methods useful for comparing script objects.

NSScriptKeyValueCoding

A collection of methods that provide additional capabilities for working with key-value coding.

NSScriptObjectSpecifiers

A collection of methods providing additional object specifier functionality. 

class NSScriptCoercionHandler

A mechanism for converting one kind of scripting data to another.

class NSScriptExecutionContext

The context in which the current script command is executed.

 

 

 

File System

Create, read, write, and examine files and folders in the file system.

File System Operations

About Apple File System

Use high-level APIs to get the most out of Apple File System.

class FileManager

A convenient interface to the contents of the file system, and the primary means of interacting with it.

protocol FileManagerDelegate

The interface a file manager's delegate uses to intervene during operations or if an error occurs.

Managed File Access

class FileHandle

An object-oriented wrapper for a file descriptor.

class NSFileSecurity

A stub class that encapsulates security information about a file.

class NSFileVersion

A snapshot of a file at a specific point in time.

class FileWrapper

A representation of a node (a file, directory, or symbolic link) in the file system.

Shared Files

protocol NSFilePresenter

The interface a file coordinator uses to inform an object presenting a file about changes to that file made elsewhere in the system.

class NSFileAccessIntent

The details of a coordinated-read or coordinated-write operation.

class NSFileCoordinator

An object that coordinates the reading and writing of files and directories among file presenters.

Errors

File System Error Codes

Recognize common error codes generated by file system operations.

 

 

Archives and Serialization

Convert objects and values to and from property list, JSON, and other flat binary representations.

First Steps

Encoding and Decoding Custom Types

Make your data types encodable and decodable for compatibility with external representations such as JSON.

typealias Codable

A type that can convert itself into and out of an external representation.

protocol NSCoding

A protocol that enables an object to be encoded and decoded for archiving and distribution.

protocol NSSecureCoding

A protocol that enables encoding and decoding in a manner that is robust against object substitution attacks.

JSON

Using JSON with Custom Types

Encode and decode JSON data, regardless of its structure, using Swift’s JSON support.

class JSONEncoder

An object that encodes instances of a data type as JSON objects.

class JSONDecoder

An object that decodes instances of a data type from JSON objects.

class JSONSerialization

An object that converts between JSON and the equivalent Foundation objects.

Property Lists

class PropertyListEncoder

An object that encodes instances of data types to a property list.

class PropertyListDecoder

An object that decodes instances of data types from a property list.

class PropertyListSerialization

An object that converts between a property list and one of several serialized representations.

XML

XML Processing and Modeling

Parse XML documents.

Keyed Archivers

class NSKeyedArchiver

An encoder that stores an object’s data to an archive referenced by keys.

protocol NSKeyedArchiverDelegate

The optional methods implemented by the delegate of a keyed archiver.

class NSKeyedUnarchiver

A decoder that restores data from an archive referenced by keys.

protocol NSKeyedUnarchiverDelegate

The optional methods implemented by the delegate of a keyed unarchiver.

class NSCoder

An abstract class that serves as the basis for objects that enable archiving and distribution of other objects.

class NSSecureUnarchiveFromDataTransformer

 

 

Preferences

Persistently store domain-scoped pieces of information for configuring your app.

App-Specific Data

class UserDefaults

An interface to the user’s defaults database, where you store key-value pairs persistently across launches of your app.

Shared Data

class NSUbiquitousKeyValueStore

An iCloud-based container of key-value pairs you use to share data among instances of your app running on a user's connected devices.

 

 

Spotlight

Search for files and other items on the local device, and index your app's content for searching.

Queries

class NSMetadataQuery

A query that you perform against Spotlight metadata.

protocol NSMetadataQueryDelegate

An interface that enables the delegate of a metadata query to provide substitute results or attributes.

Items

class NSMetadataItem

The metadata associated with a file.

 

 

iCloud

Manage files and key-value data that automatically synchronize among a user's iCloud devices.

iCloud Storage

class FileManager

A convenient interface to the contents of the file system, and the primary means of interacting with it.

protocol FileManagerDelegate

The interface a file manager's delegate uses to intervene during operations or if an error occurs.

App Preferences

Synchronizing App Preferences with iCloud

Store app preferences in iCloud and share them among instances of your app running on a user’s connected devices.

class NSUbiquitousKeyValueStore

An iCloud-based container of key-value pairs you use to share data among instances of your app running on a user's connected devices.

File Search

class NSMetadataQuery

A query that you perform against Spotlight metadata.

protocol NSMetadataQueryDelegate

An interface that enables the delegate of a metadata query to provide substitute results or attributes.

class NSMetadataItem

The metadata associated with a file.

Entitlements

com.apple.developer.icloud-container-development-container-identifiers

The container identifiers for the iCloud development environment.

com.apple.developer.icloud-container-environment

The development or production environment to use for the iCloud containers.

iCloud Container Identifiers Entitlement

The container identifiers for the iCloud production environment.

Key: com.apple.developer.icloud-container-identifiers

iCloud Services Entitlement

The iCloud services used by the app.

Key: com.apple.developer.icloud-services

iCloud Key-Value Store Entitlement

The container identifier to use for iCloud key-value storage.

Key: com.apple.developer.ubiquity-kvstore-identifier

Errors

iCloud Error Codes

Error codes to expect when an iCloud-related error occurs.

 

 

Optimizing App Data for iCloud Backup

Minimize the space and the amount of time that iCloud Backup requires for your app data.

 

 

 

 

URL Loading System

Interact with URLs and communicate with servers using standard Internet protocols. 

Essentials

Configure and create sessions, then use them to create tasks that interact with URLs.

Fetching Website Data into Memory

Receive data directly into memory by creating a data task from a URL session.

class URLSession

An object that coordinates a group of related, network data-transfer tasks.

class URLSessionTask

A task, like downloading a specific resource, performed in a URL session.

Requests and Responses

struct URLRequest

A URL load request that is independent of protocol or URL scheme.

class URLResponse

The metadata associated with the response to a URL load request, independent of protocol and URL scheme.

class HTTPURLResponse

The metadata associated with the response to an HTTP protocol URL load request.

Uploading

Uploading Data to a Website

Post data from your app to servers.

Uploading Streams of Data

Send a stream of data to a server.

Downloading

Downloading Files from Websites

Download files directly to the filesystem.

Pausing and Resuming Downloads

Allow the user to resume a download without starting over.

Downloading Files in the Background

Create tasks that download files while your app is inactive.

Cache Behavior

Accessing Cached Data

Control how URL requests make use of previously cached data.

class CachedURLResponse

A cached response to a URL request.

class URLCache

An object that maps URL requests to cached response objects.

Authentication and Credentials

Handling an Authentication Challenge

Respond appropriately when a server demands authentication for a URL request.

class URLAuthenticationChallenge

A challenge from a server requiring authentication from the client.

class URLCredential

An authentication credential consisting of information specific to the type of credential and the type of persistent storage to use, if any.

class URLCredentialStorage

The manager of a shared credentials cache.

class URLProtectionSpace

A server or an area on a server, commonly referred to as a realm, that requires authentication. 

Cookies

class HTTPCookie

A representation of an HTTP cookie.

class HTTPCookieStorage

A container that manages the storage of cookies. 

Errors

struct URLError

Error codes returned by URL loading APIs.

URL Loading System Error Info Keys

Recognize these keys from the user info dictionary of error objects produced by URL Loading APIs.

Legacy

Legacy URL Loading Systems

Migrate your code away from using these legacy objects.

 

 

Bonjour

Advertise services for easy discovery on local networks, or discover services advertised by others.

Local Network Services

class NetService

A network service that broadcasts its availability using multicast DNS.

protocol NetServiceDelegate

The interface a net service uses to inform its delegate about the state of the service it offers.

property list key NSBonjourServices

Bonjour service types browsed by the app.

Name: Bonjour services

property list key NSLocalNetworkUsageDescription

A message that tells the user why the app is requesting access to the local network.

Name: Privacy - Local Network Usage Description

Service Discovery

class NetServiceBrowser

A network service browser that finds published services on a network using multicast DNS.

protocol NetServiceBrowserDelegate

The interface a net service browser uses to inform a delegate about the state of service discovery.

 

 

XPC

Manage secure interprocess communication. 

XPC Client

protocol NSXPCProxyCreating

Methods for creating new proxy objects.

class NSXPCConnection

A bidirectional communication channel between two processes.

class NSXPCInterface

An interface that may be sent to an exported object or remote object proxy.

class NSXPCCoder

XPC Services

class NSXPCListener

A listener that waits for new incoming connections, configures them, and accepts or rejects them.

protocol NSXPCListenerDelegate

The protocol that delegates to the XPC listener use to accept or reject new connections.

class NSXPCListenerEndpoint

An object that names a specific XPC listener.

 

 

Object Runtime

Get low-level support for basic Objective-C features, Cocoa design patterns, and Swift integration.

Object Basics

class NSObject

The root class of most Objective-C class hierarchies, from which subclasses inherit a basic interface to the runtime system and the ability to behave as Objective-C objects.

protocol NSObjectProtocol

The group of methods that are fundamental to all Objective-C objects.

NSKeyValueCoding

A mechanism by which you can access the properties of an object indirectly by name or key. 

Copying

protocol NSCopying

A protocol that objects adopt to provide functional copies of themselves.

protocol NSMutableCopying

A protocol that mutable objects adopt to provide functional copies of themselves.

Value Wrappers and Transformations

class NSNumber

An object wrapper for primitive scalar numeric values.

class NSValue

A simple container for a single C or Objective-C data item.

class ValueTransformer

An abstract class used to transform values from one representation to another. 

Swift Support

protocol ReferenceConvertible

A decoration applied to types that are backed by a Foundation reference type.

Classes Bridged to Swift Standard Library Value Types

Use bridged reference types when you need reference semantics or Foundation-specific behavior.

Remote Objects

class NSProxy

An abstract superclass defining an API for objects that act as stand-ins for other objects or for objects that don’t exist yet.

Memory Management

Memory Management Functions

Perform low-level memory management tasks.

Objective-C Runtime

Objective-C Runtime Utilities

Interact with the Objective-C runtime.

Versions and API Availability

Foundation Framework Version Numbers

Recognize the constants for comparing the current running version of Foundation against known OS version numbers.

Legacy

Distributed Objects Support

Enable communication among objects in different processes, both locally and on remote systems.

Objective-C Garbage Collection

Interface with the legacy garbage collection system.

 

 

Processes and Threads

Manage your app's interaction with the host operating system and other processes, and implement low-level concurrency features.

Run Loop Scheduling

class RunLoop

The programmatic interface to objects that manage input sources.

class Timer

A timer that fires after a certain time interval has elapsed, sending a specified message to a target object.

Process Info

class ProcessInfo

A collection of information about the current process.

Threads and Locking

class Thread

A thread of execution.

protocol NSLocking

The elementary methods adopted by classes that define lock objects.

class NSLock

An object that coordinates the operation of multiple threads of execution within the same application.

class NSRecursiveLock

A lock that may be acquired multiple times by the same thread without causing a deadlock.

class NSDistributedLock

A lock that multiple applications on multiple hosts can use to restrict access to some shared resource, such as a file.

class NSConditionLock

A lock that can be associated with specific, user-defined conditions.

class NSCondition

A condition variable whose semantics follow those used for POSIX-style conditions.

Operations

class OperationQueue

A queue that regulates the execution of operations.

class Operation

An abstract class that represents the code and data associated with a single task.

class BlockOperation

An operation that manages the concurrent execution of one or more blocks.

Scripts and External Tasks

class Process

An object representing a subprocess of the current process.

class NSUserScriptTask

An object that executes scripts.

class NSUserAppleScriptTask

An object that executes AppleScript scripts.

class NSUserAutomatorTask

An object that executes Automator workflows.

class NSUserUnixTask

An object that executes unix applications.

 

 

Streams, Sockets, and Ports

Use low-level Unix features to manage input and output among files, processes, and the network.

Streams

class Stream

An abstract class representing a stream.

class InputStream

A stream that provides read-only stream functionality.

class OutputStream

A stream that provides write-only stream functionality.

protocol StreamDelegate

An interface that delegates of a stream instance use to handle events on the stream.

Tasks and Pipes

class Process

An object representing a subprocess of the current process.

class Pipe

A one-way communications channel between related processes.

Sockets

class Host

A representation of an individual host on the network.

class Port

An abstract class that represents a communication channel.

class SocketPort

A port that represents a BSD socket.

Byte Ordering

Byte Order Utilities

Examine and manage the byte order of numbers communicated through network channels.

댓글
공지사항