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
  • Open Directory

    • Open Directory
    • Open Directory

    Authenticate users, and search for contact information in Open Directory and LDAP directories.

    • DOCUMENTATION
    • Objective-C
    • Swift
  • OpenDirectory Functions

    This document describes the functions, constants, and data types used to interact with Open Directory.

    • DOCUMENTATION ARTICLE
    • Swift
    • Objective-C
  • openDirectory(containerIdentifier:)

    • GameSave
    • openDirectory(containerIdentifier:)

    Requests an instance of the game-save directory.

    • DOCUMENTATION
    • Swift
  • directory

    • System
    • FileDescriptor.OpenOptions
    • directory

    Indicates that opening the file only succeeds if the file is a directory.

    • DOCUMENTATION
    • Swift
  • The Developer Directory

    Conceptual information and guidelines describing the structure and usage of the Mac OS X file system.

  • NSOpenStepRootDirectory()

    • Foundation
    • NSOpenStepRootDirectory()

    Returns the root directory of the user’s system.

    • DOCUMENTATION
    • Objective-C
    • Swift
  • directory

    • AppKit
    • directory

    Returns the absolute pathname of the directory currently shown in the panel.

    • DOCUMENTATION
    • Objective-C
  • directory

    • Uniform Type Identifiers
    • UTType
    • directory

    A type that represents a file system directory, including packages and folders.

    • DOCUMENTATION
    • Swift
  • directory

    • Virtualization
    • VZSingleDirectoryShare
    • directory

    The directory on the host to share with the guest VM.

    • DOCUMENTATION
    • Objective-C
    • Swift
  • directory

    • Foundation
    • URLFileResourceType
    • directory

    The resource is a directory.

    • DOCUMENTATION
    • Objective-C
    • Swift
  • directory

    • Apple Archive
    • ArchiveHeader.EntryType
    • directory

    A constant that indicates the entry is a directory.

    • DOCUMENTATION
    • Swift
  • Iterating Directory Contents

    Guidelines for improving the performance of file-related code.

  • open(forContainerIdentifier:)

    • GameSave
    • open(forContainerIdentifier:)

    Requests an instance of the game-save directory.

    • DOCUMENTATION
    • Objective-C
    • Swift
  • Using the Open and Save Panels

    Explains how to create and manage files and directories.

  • Node Types

    Open Directory node types.

    • DOCUMENTATION ARTICLE
    • Swift
    • Objective-C
  • Record Types

    Types of Open Directory records.

    • DOCUMENTATION ARTICLE
    • Swift
    • Objective-C
  • Authentication Types

    Types of authentication available in Open Directory.

    • DOCUMENTATION ARTICLE
    • Swift
    • Objective-C
  • _ODAuthenticationType

    An Open Directory authentication type.

    • DOCUMENTATION ARTICLE
    • Objective-C
    • Swift
  • _ODRecordType

    An Open Directory record type.

    • DOCUMENTATION ARTICLE
    • Objective-C
    • Swift
  • _ODAttributeType

    An Open Directory attribute type.

    • DOCUMENTATION ARTICLE
    • Objective-C
    • Swift
  • General Attribute Types

    Types of Open Directory attributes.

    • DOCUMENTATION ARTICLE
    • Swift
    • Objective-C
  • _ODAuthenticationType

    An Open Directory authentication type.

    • DOCUMENTATION ARTICLE
    • Swift
    • Objective-C
  • _ODAttributeType

    An Open Directory attribute type.

    • DOCUMENTATION ARTICLE
    • Swift
    • Objective-C
  • Mac OS X Manual Page For directory(3)

    HTML versions of the iOS man pages.

  • 13:17

    Previsualization for Apple Immersive: Learnings from “Open Hearts” by The Weeknd

    • MEET WITH APPLE VIDEO
  • 21:56

    Meet Swift OpenAPI Generator

    Discover how Swift OpenAPI Generator can help you work with HTTP server APIs whether you're extending an iOS app or writing a server in Swift. We'll...

    • WWDC23 VIDEO
  • Authentication and Identification In Depth

    Explains the concepts of authorization and authentication in depth.

  • Command Line Primer

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

  • Additional Features

    Conceptual information and tips about porting UNIX and Linux applications to OS X.

  • About Bundles

    Explains how to use bundle objects to organize resources.

  • Core OS Layer

    Introduces OS X and its technologies.

  • Configuring a Choose Dialog

    Explains how Cocoa applications can use, manipulate, and

  • Display Names

    Conceptual information and guidelines describing the structure and usage of the Mac OS X file system.

  • File System Basics

    Explains how to create and manage files and directories.

  • Introduction

    Describes the build settings used in the Xcode build system to compile source code and produce binary files.

  • Filtering Out Browser Items

    Explains how Cocoa applications can use, manipulate, and

  • Introduction to Application File Management

    Explains how Cocoa applications can use, manipulate, and

  • Accessing Files and Directories

    Explains how to create and manage files and directories.

  • Mac OS X Manual Page For rename(2)

    HTML versions of the iOS man pages.

  • Mac OS X Manual Page For unlink(2)

    HTML versions of the iOS man pages.

  • Porting File, Device, and Network I/O

    Conceptual information and tips about porting UNIX and Linux applications to OS X.

  • Managing the Life Cycle of a Document

    Describes how to create an iOS application whose documents are integrated with iCloud storage.

  • Race Conditions and Secure File Operations

    Describes techniques to use and factors to consider to make your code more secure from attack.

  • Tracking File-System Changes

    Guidelines for improving the performance of file-related code.

  • Using Document Storage with iCloud

    Describes how to use iCloud with Core Data.

  • Working with FTP Servers

    Explains how to use Core Foundation networking functions to work with low-level BSD sockets.

  • Xcode Workspace

    Describes concepts developers must understand to use Xcode effectively.

  • 12:32

    Meet Containerization

    Meet Containerization, an open source project written in Swift to create and run Linux containers on your Mac. Learn how Containerization approaches...

    • WWDC25 VIDEO
  • 22:49

    Build a great Lock Screen camera capture experience

    Find out how the LockedCameraCapture API can help you bring your capture application's most useful information directly to the Lock Screen. Examine...

    • WWDC24 VIDEO
  • 20:05

    Meet Object Capture for iOS

    Discover how you can offer an end-to-end Object Capture experience directly in your iOS apps to help people turn their objects into ready-to-use 3D...

    • WWDC23 VIDEO
  • 57:13

    Bringing OpenGL Apps to Metal

    Metal is the modern foundation for GPU-accelerated graphics and compute on Apple platforms, superseding OpenGL, OpenGL ES, and OpenCL. Get introduced...

    • WWDC19 VIDEO
  • 24:02

    Create Swift Package plugins

    • WWDC22 VIDEO
  • 13:51

    Host and automate your DocC documentation

    Find out how you can easily host your Swift package and framework DocC documentation online. We'll take you through configuring your web server to...

    • WWDC21 VIDEO
  • 17:49

    Sync files to the cloud with FileProvider on macOS

    Find out how you can use the FileProvider framework to build a comprehensive cloud sync solution. We'll show you how to approach building a file...

    • WWDC21 VIDEO
  • 23:55

    What’s New in File Management and Quick Look

    Your iOS app can now access files stored on external devices via USB and SMB. Understand best practices for creating a document-based app that reads,...

    • WWDC19 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
    • Apple Intelligence
    • 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
    • Mini Apps Partner 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 © 2026 Apple Inc. All rights reserved.
    Terms of Use Privacy Policy Agreements and Guidelines