View in English

  • Global Nav Open Menu Global Nav Close Menu
  • Apple Developer
Search
Cancel
  • Apple Developer
  • News
  • Discover
  • Design
  • Develop
  • Distribute
  • Support
  • Account
Only search within “”

Quick Links

5 Quick Links
  • NSString

    • Foundation
    • NSString

    A static, plain-text Unicode string object.

    • DOCUMENTATION
    • Objective-C
    • Swift
  • NSString.CompareOptions

    • Foundation
    • NSString
    • NSString.CompareOptions

    These values represent the options available to many of the string classes’ search and comparison methods.

    • DOCUMENTATION
    • Objective-C
    • Swift
  • NSString.DrawingOptions

    • Foundation
    • NSString
    • NSString.DrawingOptions

    • DOCUMENTATION
    • Swift
  • NSString.EnumerationOptions

    • Foundation
    • NSString
    • NSString.EnumerationOptions

    Constants to specify kinds of substrings and styles of enumeration.

    • DOCUMENTATION
    • Objective-C
    • Swift
  • NSString.EncodingConversionOptions

    • Foundation
    • NSString
    • NSString.EncodingConversionOptions

    Options for converting string encodings.

    • DOCUMENTATION
    • Objective-C
    • Swift
  • NS_STRING_ENUM

    • Foundation
    • NS_STRING_ENUM

    • DOCUMENTATION
    • Objective-C
  • NSMutableString

    • Foundation
    • NSMutableString

    A dynamic plain-text Unicode string object.

    • DOCUMENTATION
    • Objective-C
    • Swift
  • NSStringEncoding

    • Foundation
    • NSStringEncoding

    The following constants are provided by NSString as possible string encodings.

    • DOCUMENTATION
    • Objective-C
  • NS_EXTENSIBLE_STRING_ENUM

    • Foundation
    • NS_EXTENSIBLE_STRING_ENUM

    • DOCUMENTATION
    • Objective-C
  • String Resources

    Explains how to work with nib and bundle resources in apps.

  • NSDateFormatString

    • Foundation
    • NSDateFormatString

    Key for the format string that specifies how dates are printed using the date format specifiers.

    • DOCUMENTATION
    • Objective-C
  • Build String- Glossary

    The build string (CFBundleVersion) is a machine-readable string required to distribute to customers and is used throughout the system to identify your app’s released or unreleased build. It’s composed of one to three period-separated integers...

    • SUPPORT
  • Formatting String Objects

    Explains how to create, search, concatenate, and draw strings in Cocoa.

  • Changing an Attributed String

    Explains how to use attributed strings, which manage attributes of character strings or individual characters.

  • Subclassing NSCoder

    Explains how to put Cocoa objects into and remove them from a representation suitable for archiving.

  • String Programming Guide

  • String Format Specifiers

    Explains how to create, search, concatenate, and draw strings in Cocoa.

  • Using NSInvocation

    Explains how Objective-C objects in different threads or different processes communicate.

  • Creating and Converting String Objects

    Explains how to create, search, concatenate, and draw strings in Cocoa.

  • Attributed String Programming Guide

  • Introduction to String Programming Guide

    Explains how to create, search, concatenate, and draw strings in Cocoa.

  • String Representations of File Paths

    Explains how to create, search, concatenate, and draw strings in Cocoa.

  • Searching File Metadata with NSMetadataQuery

    Describes how to add Spotlight searching to your applications.

  • Creating the Subclass of NSDocument

    Explains how to create document-based applications using the Cocoa document architecture on OS X.

  • Creating an NSTextView Object

    Explains how to implement the main, high-level interface to the Cocoa text system.

  • About NSNetServices and CFNetServices

    Explains how to implement Bonjour in Cocoa or Carbon apps.

  • Decompressing and Parsing an Archived String

    Recreate a string from an archive file.

    • DOCUMENTATION ARTICLE
    • Swift
  • Grouping Related Objective-C Constants

    Add macros to your Objective-C types to group their values in Swift.

    • DOCUMENTATION ARTICLE
    • Swift
  • Comparison of NSPredicate and Spotlight Query Strings

    Describes how to specify queries in Cocoa.

  • Decompressing and Parsing an Archived String

    Recreate a string from an archive file.

    • DOCUMENTATION ARTICLE
    • Objective-C
    • Swift
  • Localizing and varying text with a string catalog

    Use a string catalog to translate text, handle plurals, and vary the text your app displays on specific devices.

    • DOCUMENTATION ARTICLE
    • Swift
  • 35:10

    Code-along: Cook up a rich text experience in SwiftUI with AttributedString

    Learn how to build a rich text experience with SwiftUI's TextEditor API and AttributedString. Discover how you can enable rich text editing, build...

    • WWDC25 VIDEO
    • 00:18:08

      that don’t use Swift’s Character type, such as NSString.

  • 31:34

    Discover String Catalogs

    Discover how Xcode 15 makes it easy to localize your app by managing all of your strings in one place. We'll show you how to extract, edit, export,...

    • WWDC23 VIDEO
  • Renaming Objective-C APIs for Swift

    Use the NS_SWIFT_NAME macro to customize API names for Swift.

    • DOCUMENTATION ARTICLE
    • Swift
  • Making Objective-C APIs Unavailable in Swift

    Use the NS_SWIFT_UNAVAILABLE macro to prevent an API from being used in Swift.

    • DOCUMENTATION ARTICLE
    • Swift
  • Improving Objective-C API Declarations for Swift

    Use the NS_REFINED_FOR_SWIFT macro to change how an API is imported into Swift.

    • DOCUMENTATION ARTICLE
    • Swift
  • Working with Foundation Types

    Use bridged Foundation types in your Swift codebase to work with dates, times, and other values.

    • DOCUMENTATION ARTICLE
    • Swift
  • AppKit Release Notes for macOS 10.14

    Update your apps to use new features, and test your apps against API changes.

    • DOCUMENTATION ARTICLE
    • Swift
  • Xcode 11.1 Release Notes

    Update your apps to use new features, and test your apps against API changes.

    • DOCUMENTATION ARTICLE
    • Swift
  • An Extreme Example: The Monte Carlo (Bourne) Method for Pi

    Provides a guided tour of (Bourne) shell scripting, including control structures, numerical computation, regular expressions, subroutines, and error handling.

  • Conventions

    Describes elements of best practice when writing code with Objective-C using ARC.

  • Defining Classes

    Describes elements of best practice when writing code with Objective-C using ARC.

  • App Extension Programming Guide: Understand How an App Extension Works

    Describes how to develop an app extension, which is an executable that adds functionality to other apps.

  • Accessibility Programming Guide for OS X: Implementing Accessibility for Custom Controls

    Explains how to use the accessibility features built into OS X.

  • 64-Bit Changes To the Cocoa API

    Explains how to port Cocoa projects to 64-bit addressing.

  • Archives

    Explains how to put Cocoa objects into and remove them from a representation suitable for archiving.

  • What's New in iOS 9 and OS X 10.11

    Describes how to use the Metal framework to implement low-overhead graphics rendering or parallel computational tasks.

  • 18:56

    Develop for Shortcuts and Spotlight with App Intents

    Learn about how building App Intents that make actions available and work best with the new features in Shortcuts and Spotlight on Mac. We'll show...

    • WWDC25 VIDEO
  • 23:45

    Meet FinanceKit

    Learn how FinanceKit lets your financial management apps seamlessly and securely share on-device data from Apple Cash, Apple Card, and more, with...

    • WWDC24 VIDEO
  • 26:58

    Program Metal in C++ with metal-cpp

    • WWDC22 VIDEO
  • 35:40

    Swift and Objective-C Interoperability

    • WWDC15 VIDEO
  • 51:04

    Adopting Handoff on iOS and OS X

    Handoff allows people to seamlessly move activities between devices and pick up right where they left off. Learn how to save, transfer, and restore...

    • WWDC14 VIDEO
  • 11:11

    Targeting Content with Multiple Windows

    Learn how to target content for a specific window in your app. Find out how to identify which scene the system should open from a notification, a...

    • WWDC19 VIDEO
  • 37:02

    What’s New in AppKit for macOS

    Learn about the latest APIs in AppKit and associated frameworks. Get an overview of the enhancements coming in macOS Catalina to help you save time,...

    • WWDC19 VIDEO
    • 00:03:13

      NSString. And what is a tagged pointer?

  • 38:37

    What's New in LLDB

    Enhancements to LLDB simplify life for Swift and Objective-C developers alike. Experienced developers will find new powers within the debugging...

    • WWDC15 VIDEO

Developer Footer

  • Search
  • Open Menu Close Menu
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    Open Menu Close Menu
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • Icon Composer
    • SF Symbols
    Open Menu Close Menu
    • Accessibility
    • Accessories
    • App Store
    • Audio & Video
    • Augmented Reality
    • Business
    • Design
    • Distribution
    • Education
    • Fonts
    • Games
    • Health & Fitness
    • In-App Purchase
    • Localization
    • Maps & Location
    • Machine Learning & AI
    • Open Source
    • Security
    • Safari & Web
    Open Menu Close Menu
    • Documentation
    • Sample Code
    • Tutorials
    • Downloads
    • Forums
    • Videos
    Open Menu Close Menu
    • Support Articles
    • Contact Us
    • Bug Reporting
    • System Status
    Open Menu Close Menu
    • Apple Developer
    • App Store Connect
    • Certificates, IDs, & Profiles
    • Feedback Assistant
    Open Menu Close Menu
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program
    • News Partner Program
    • Video Partner Program
    • Security Bounty Program
    • Security Research Device Program
    Open Menu Close Menu
    • Meet with Apple
    • Apple Developer Centers
    • App Store Awards
    • Apple Design Awards
    • Apple Developer Academies
    • WWDC
    Get the Apple Developer app.
    Copyright © 2025 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines