Cocoa Programming/Foundation Kit

From Wikibooks, open books for an open world
Jump to navigation Jump to search
Cocoa Programming
First Steps | Objective-C basics | Memory Management | Foundation Kit | Application Kit | Web Kit

The Foundation Kit is one of two frameworks or large collections of classes that comprise Cocoa. It provides classes for dealing with strings, collections, memory management, communication, threading, et cetera. Most of the functionality in a Cocoa application that is independent of the application's interface can be attributed to classes residing in the Foundation framework.

Foundation Locks[edit | edit source]

An NSLock object is provided as a less-portable alternative to using POSIX locks in the Cocoa Foundation Kit. A simpler alternative is to use the @synchronized Objective-C directive.