Jump To:
Leopard Reference Library: Cocoa
Process management in Mac OS X facilitates the scheduling and execution of programs at runtime. The Cocoa environment provides programming interfaces for interacting with the operating system. Using these, developers can get process and host information, launch subprocesses, and pipe data between processes.

Document Descriptions
On Off
Display

Sorted by
Title
Sort by
Resource Type
Sort by
Date
CrossEvents (HTML) (DMG) (ZIP)
Demonstrates how to send CarbonEvents and NSNotifications between Carbon and Cocoa.
Sample Code 2007-05-31
Customizing Process Stack Size (HTML)
QA1419: Describes methods for setting the stack size of a process and/or thread.
Technical Q&As 2008-02-20
Daemons and Agents (HTML)
TN2083: Describes the most common problems encountered with daemons and agents, and suggests detailed solutions.
Technical Notes 2007-11-05
Determining console user login status (HTML)
QA1133: How to determine whether a user is logged in on the console, and be notified of changes.
Technical Q&As 2008-04-14
Interacting with the Operating System (HTML) (PDF)
Explains how Cocoa applications manage tasks and get information about hosts and processes.
Guides 2006-04-04
LoginItemsAE (HTML) (DMG) (ZIP)
Uses Apple events to manipulate the list of login items (items launched when you log in).
Sample Code 2005-10-17
NSCondition Class Reference (HTML) (PDF)
Describes a pthread-style condition variable and associated mutex lock.
Reference 2008-09-09
NSConditionLock Class Reference (HTML) (PDF)
Describes an integer-based condition for use in thread locking.
Reference 2007-01-15
NSDistributedLock Class Reference (HTML) (PDF)
Describes a mutex lock that spans multiple processes.
Reference 2007-01-22
NSHost Class Reference (HTML) (PDF)
Describes a representation of a network host.
Reference 2007-03-24
NSLock Class Reference (HTML) (PDF)
Describes a mutex-based lock.
Reference 2008-02-08
NSLocking Protocol Reference (HTML) (PDF)
Describes the interface for supporting mutex and condition locks.
Reference 2007-01-22
NSOperation Class Reference (HTML) (PDF)
Describes an encapsulated, single-shot task.
Reference 2008-11-19
NSOperationQueue Class Reference (HTML) (PDF)
Describes an object that manages a set of prioritized operations.
Reference 2008-11-19
NSOperationSample (HTML) (DMG) (ZIP)
Demonstrates how to use the NSOperation and NSOperationQueue classes.
Sample Code 2007-06-11
NSProcessInfo Class Reference (HTML) (PDF)
Describes the current process.
Reference 2007-03-26
NSRecursiveLock Class Reference (HTML) (PDF)
Describes a lock that can be acquired multiple times by one thread without causing a deadlock.
Reference 2007-04-30
NSTask Class Reference (HTML) (PDF)
Describes a task that runs as a subprocess.
Reference 2007-01-31
NSThread Class Reference (HTML) (PDF)
Describes a thread of execution.
Reference 2007-12-11
Observing Process Lifetimes Without Polling (HTML)
TN2050: Shows a variety of methods to observe process lifetimes without polling.
Technical Notes 2008-09-10
Porting Multithreaded Applications from Win32 to Mac OS X (HTML)
Learn how Mac OS X handles multithreading, before porting your Win32 application.
Articles 2005-06-20
PreLoginAgents (HTML) (DMG) (ZIP)
Pre-login launchd agents to display UI using AppKit and HIToolbox.
Sample Code 2007-10-26
Programmatically causing restart, shutdown and/or logout (HTML) (日本語 HTML)
QA1134: Describes how to programmatically cause restart, shutdown, sleep or logout.
Technical Q&As 2008-09-24
SharedMemory (HTML) (DMG) (ZIP)
Shows how multiple applications can access the same memory using the Unix shmget system call.
Sample Code 2003-01-14
SimpleThreads (HTML) (DMG) (ZIP)
Uses the Cocoa threading APIs to coordinate multiple preemptively scheduled secondary threads with the non-reentrant Cocoa framework.
Sample Code 2003-01-14
Threading Programming Guide (HTML) (PDF)
Explains how to use threads in Cocoa applications.
Guides 2008-02-08
TrivialThreads (HTML) (DMG) (ZIP)
Uses the Cocoa threading APIs to coordinate a preemptively scheduled secondary thread with the non-reentrant Cocoa framework.
Sample Code 2003-01-14
Using collection classes safely with multithreaded applications (HTML) (日本語 HTML)
TN2059: Describes some problems with and workarounds for using mutable collection classes in multithreaded applications.
Technical Notes 2002-09-10