The Foundation framework provides a base layer of functionality for apps and frameworks, including data storage and persistence, text processing, date and time calculations, sorting and filtering, and networking. The classes, protocols, and data types defined by Foundation are used throughout the macOS, iOS, watchOS, and tvOS SDKs.

Foundation 프레임워크는 데이터 저장 및 지속성, 텍스트 처리, 날짜 및 시간 계산, 정렬 및 필터링, 네트워킹을 포함하여 앱 및 프레임워크에 대한 기본 기능 계층을 제공한다. Foundation에서 정의한 클래스, 프로토콜 및 데이터 유형은 macOS, iOS, watchOS 및 tvOS SDK 전체에서 사용된다.

  • Numbers, Data, and Basic Values
    Work with primitive values and other fundamental types used throughout Cocoa.
  • Strings and Text
    Create and process strings of Unicode characters, use regular expressions to find patterns, and perform natural language analysis of text.
  • Collections
    Use arrays, dictionaries, sets, and specialized collections to store and iterate groups of objects or values.
  • Dates and Times
    Compare dates and times, and perform calendar and time zone calculations.
  • Units and Measurement
    Label numeric quantities with physical dimensions to allow locale-aware formatting and conversion between related units.
  • Data Formatting
    Convert numbers, dates, measurements, and other values to and from locale-aware string representations.
  • Filters and Sorting
    Use predicates, expressions, and sort descriptors to examine elements in collections and other services.

참고 자료