Foundation Classes

Classes


Class


Abstract


NSObject


NSObject is the root class of most Objective-C class hierarchies.

在Objective-C的类层次结构树中,NSObject是大多数类的根类。

  • NSArray

NSArray and its subclass NSMutableArray manage ordered collections of objects called arrays.

NSArray和其子类NSMutableArray管理对象的有序集合,所以称之为数组。

    • NSMutableArray

The NSMutableArray class declares the programmatic interface to objects that manage a modifiable array of objects.

NSMutableArray类为对象声明编程接口,以管理可编辑的对象数组。

  • NSAssertionHandler

NSAssertionHandler objects are automatically created to handle false assertions.

  • NSAttributedString

An NSAttributedString object manages character strings and associated sets of attributes (for example, font and kerning) that apply to individual characters or ranges of characters in the string.

    • NSMutableAttributedString

NSMutableAttributedString declares the programmatic interface to objects that manage mutable attributed strings.

  • NSAutoreleasePool

The NSAutoreleasePool class is used to support Cocoa’s reference-counted memory management system.

  • NSBundle

An NSBundle object represents a location in the file system that groups code and resources that can be used in a program.

  • NSCache

An NSCache object is a collection-like container, or cache, that stores key-value pairs, similar to the NSDictionaryclass.

  • NSCachedURLResponse

An NSCachedURLResponse object represents a cached response to a URL request.

  • NSCalendar

Calendars encapsulate information about systems of reckoning time in which the beginning, length, and divisions of a year are defined.

  • NSCharacterSet

An NSCharacterSet object represents a set of Unicode-compliant characters.

    • NSMutableCharacterSet

The NSMutableCharacterSet class declares the programmatic interface to objects that manage a modifiable set of Unicode characters.

  • NSCoder

The NSCoder abstract class declares the interface used by concrete subclasses to transfer objects and other values between memory and some other format.

    • NSKeyedArchiver

NSKeyedArchiver, a concrete subclass of NSCoder, provides a way to encode objects (and scalar values) into an architecture-independent format that can be stored in a file.

    • NSKeyedUnarchiver

NSKeyedUnarchiver, a concrete subclass of NSCoder, defines methods for decoding a set of named objects (and scalar values) from a keyed archive.

  • NSCondition

The NSCondition class implements a condition variable whose semantics follow those used for POSIX-style conditions.

  • NSConditionLock

The NSConditionLock class defines objects whose locks can be associated with specific, user-defined conditions.

  • NSData

NSData and its mutable subclass NSMutableData provide data objects, object-oriented wrappers for byte buffers.

    • NSMutableData

NSMutableData (and its superclass NSData) provide data objects, object-oriented wrappers for byte buffers.

      • NSPurgeableData

You should use the NSPurgeableData class when you have objects with bytes that can be discarded when no longer needed.

  • NSDate

NSDate objects represent a single point in time.

  • NSDateComponents

NSDateComponents encapsulates the components of a date in an extendable, object-oriented manner.

  • NSDecimalNumberHandler

NSDecimalNumberHandler is a class that adopts the NSDecimalNumberBehaviors protocol.

  • NSDictionary

The NSDictionary class declares the programmatic interface to objects that manage immutable associations of keys and values.

    • NSMutableDictionary

The NSMutableDictionary class declares the programmatic interface to objects that manage mutable associations of keys and values.

  • NSEnumerator

NSEnumerator is an abstract class, instances of whose subclasses enumerate collections of other objects, such as arrays and dictionaries.

    • NSDirectoryEnumerator

An NSDirectoryEnumerator object enumerates the contents of a directory, returning the pathnames of all files and directories contained within that directory.

  • NSError

An NSError object encapsulates richer and more extensible error information than is possible using only an error code or error string.

  • NSException

NSException is used to implement exception handling and contains information about an exception.

  • NSExpression

NSExpression is used to represent expressions in a predicate.

  • NSExtensionContext

An NSExtensionContext object represents the host app context from which an app extension is invoked.

  • NSExtensionItem

An NSExtensionItem object is an immutable collection of values representing different aspects of an item for the extension to act upon.

  • NSFileAccessIntent

The NSFileAccessIntent class stores the details of coordinated-read and coordinated-write operations.

  • NSFileCoordinator

The NSFileCoordinator class coordinates the reading and writing of files and directories among multiple processes and objects in the same process.

  • NSFileHandle

The NSFileHandle class is an object-oriented wrapper for a file descriptor.

  • NSFileManager

An NSFileManager object lets you examine the contents of the file system and make changes to it.

  • NSFileSecurity

The NSFileSecurity class is an Objective-C stub class that is transparently bridged to CFFileSecurity.

  • NSFileVersion

An NSFileVersion object represents a snapshot of a file at a specific point in time.

  • NSFileWrapper

The NSFileWrapper class provides access to the attributes and contents of file-system nodes.

  • NSFormatter

NSFormatter is an abstract class that declares an interface for objects that create, interpret, and validate the textual representation of cell contents.

    • NSByteCountFormatter

The NSByteCountFormatter class converts a byte count value into a textual representation that is formatted with the appropriate byte modifier (KB, MB, GB and so on).

    • NSDateComponentsFormatter
 
    • NSDateFormatter

Instances of NSDateFormatter create string representations of NSDate objects, and convert textual representations of dates and times into NSDate objects.

    • NSDateIntervalFormatter
 
    • NSEnergyFormatter

The NSEnergyFormatter class provides properly formatted, localized descriptions of energy values.

    • NSLengthFormatter

The NSLengthFormatter class provides properly formatted, localized descriptions of linear distances (for example, length and height measurements).

    • NSMassFormatter

The NSMassFormatter class provides properly formatted, localized descriptions of mass and weight values.

    • NSNumberFormatter

Instances of NSNumberFormatter format the textual representation of cells that contain NSNumber objects and convert textual representations of numeric values into NSNumber objects.

  • NSHashTable

NSHashTable is modeled after NSSet but provides different options, in particular to support weak relationships.

  • NSHTTPCookie

An NSHTTPCookie object represents an HTTP cookie.

  • NSHTTPCookieStorage

NSHTTPCookieStorage implements a singleton object (shared instance) that manages storage of cookies.

  • NSIndexPath

The NSIndexPath class represents the path to a specific node in a tree of nested array collections.

  • NSIndexSet

The NSIndexSet class represents an immutable collection of unique unsigned integers, known as indexes because of the way they are used.

    • NSMutableIndexSet

The NSMutableIndexSet class represents a mutable collection of unique unsigned integers, known as indexes because of the way they are used.

  • NSInvocation

An NSInvocation is an Objective-C message rendered static, that is, it is an action turned into an object.

  • NSItemProvider

The NSItemProvider class defines an object that represents a high-level abstraction for data objects that can be found in an NSExtensionItem object’s attachments property, such as text, images, and URLs.

  • NSJSONSerialization

You use the NSJSONSerialization class to convert JSON to Foundation objects and convert Foundation objects to JSON.

  • NSLinguisticTagger

The NSLinguisticTagger class is used to automatically segment natural-language text and tag it with information, such as parts of speech.

  • NSLocale

Locales encapsulate information about linguistic, cultural, and technological conventions and standards.

  • NSLock

An NSLock object is used to coordinate the operation of multiple threads of execution within the same application.

  • NSMapTable

NSMapTable is a mutable collection modeled after NSDictionary but provides different options.

  • NSMetadataItem

The NSMetadataItem class represents the metadata associated with a file, providing a simple interface to retrieve the available attribute names and values.

  • NSMetadataQuery

The NSMetadataQuery class encapsulates the functionality provided by the MDQuery opaque type for querying the Spotlight metadata.

  • NSMetadataQueryAttributeValueTuple

The NSMetadataQueryAttributeValueTuple class represents attribute-value tuples, which are objects that contain the attribute name and value of a metadata attribute.

  • NSMetadataQueryResultGroup

The NSMetadataQueryResultGroup class represents a collection of grouped attribute results returned by an NSMetadataQuery object.

  • NSMethodSignature

An NSMethodSignature object records type information for the arguments and return value of a method.

  • NSNetService

The NSNetService class represents a network service, either one your application publishes or is a client of.

  • NSNetServiceBrowser

The NSNetServiceBrowser class defines an interface for finding published services on a network using multicast DNS.

  • NSNotification

NSNotification objects encapsulate information so that it can be broadcast to other objects by an NSNotificationCenter object.

  • NSNotificationCenter

An NSNotificationCenter object (or simply, notification center) provides a mechanism for broadcasting information within a program.

  • NSNotificationQueue

NSNotificationQueue objects (or simply notification queues) act as buffers for notification centers (instances of NSNotificationCenter).

  • NSNull

The NSNull class defines a singleton object used to represent null values in collection objects (which don’t allow nil values).

  • NSOperation

The NSOperation class is an abstract class you use to encapsulate the code and data associated with a single task.

    • NSBlockOperation

The NSBlockOperation class is a concrete subclass of NSOperation that manages the concurrent execution of one or more blocks.

    • NSInvocationOperation

The NSInvocationOperation class is a concrete subclass of NSOperation that manages the execution of a single encapsulated task specified as an invocation.

  • NSOperationQueue

The NSOperationQueue class regulates the execution of a set of NSOperation objects.

  • NSOrderedSet

NSOrderedSet and its subclass, NSMutableOrderedSet, declare the programmatic interfaces to an ordered collection of objects.

    • NSMutableOrderedSet

NSMutableOrderedSet class declares the programmatic interface to a mutable, ordered collection of distinct objects.

  • NSOrthography

The NSOrthography class describes the linguistic content of a piece of text, typically used for the purposes of spelling and grammar checking.

  • NSPipe

NSPipe objects provide an object-oriented interface for accessing pipes.

  • NSPointerArray

NSPointerArray is a mutable collection modeled after NSArray but it can also hold NULL values, which can be inserted or extracted (and which contribute to the object’s count).

  • NSPointerFunctions

An instance of NSPointerFunctions defines callout functions appropriate for managing a pointer reference held somewhere else.

  • NSPort

NSPort is an abstract class that represents a communication channel.

    • NSMachPort

NSMachPort is a subclass of NSPort that can be used as an endpoint for distributed object connections (or raw messaging).

    • NSMessagePort

NSMessagePort is a subclass of NSPort that can be used as an endpoint for distributed object connections (or raw messaging).

  • NSPredicate

The NSPredicate class is used to define logical conditions used to constrain a search either for a fetch or for in-memory filtering.

    • NSComparisonPredicate

NSComparisonPredicate is a subclass of NSPredicate that you use to compare expressions.

    • NSCompoundPredicate

NSCompoundPredicate is a subclass of NSPredicate used to represent logical “gate” operations (AND/OR/NOT) and comparison operations.

  • NSProcessInfo

The NSProcessInfo class provides methods to access information about the current process.

  • NSProgress

The NSProgress class provides a self-contained mechanism for progress reporting.

  • NSPropertyListSerialization

The NSPropertyListSerialization class provides methods that convert property list objects to and from several serialized formats.

  • NSRecursiveLock

NSRecursiveLock defines a lock that may be acquired multiple times by the same thread without causing a deadlock, a situation where a thread is permanently blocked waiting for itself to relinquish a lock.

  • NSRegularExpression

The NSRegularExpression class is used to represent and apply regular expressions to Unicode strings.

    • NSDataDetector

The NSDataDetector class is a specialized subclass of the NSRegularExpression class designed to match data detectors.

  • NSRunLoop

The NSRunLoop class declares the programmatic interface to objects that manage input sources.

  • NSScanner

The NSScanner class is an abstract superclass of a class cluster that declares the programmatic interface for an object that scans values from an NSString object.

  • NSSet

The NSSetNSMutableSet, and NSCountedSet classes declare the programmatic interface to an unordered collection of objects.

    • NSMutableSet

The NSMutableSet class declares the programmatic interface to a mutable, unordered collection of distinct objects.

      • NSCountedSet

The NSCountedSet class declares the programmatic interface to a mutable, unordered collection of indistinct objects.

  • NSSortDescriptor

An instance of NSSortDescriptor describes a basis for ordering objects by specifying the property to use to compare the objects, the method to use to compare the properties, and whether the comparison should be ascending or descending.

  • NSStream

NSStream is an abstract class for objects representing streams.

    • NSInputStream

NSInputStream is a subclass of NSStream that provides read-only stream functionality.

    • NSOutputStream

The NSOutputStream class is a subclass of NSStream that provides write-only stream functionality.

  • NSString

The NSString class declares the programmatic interface for an object that manages immutable strings.

    • NSMutableString

The NSMutableString class declares the programmatic interface to an object that manages a mutable string—that is, a string whose contents can be edited—that conceptually represents an array of Unicode characters.

  • NSTextCheckingResult

NSTextCheckingResult is a class used to describe items located by text checking.

  • NSThread

An NSThread object controls a thread of execution.

  • NSTimer

You use the NSTimer class to create timer objects or, more simply, timers.

  • NSTimeZone

NSTimeZone is an abstract class that defines the behavior of time zone objects.

  • NSUbiquitousKeyValueStore

Use the iCloud key-value store to make preference, configuration, and app-state data available to every instance of your app on every device connected to a user’s iCloud account.

  • NSUndoManager

NSUndoManager is a general-purpose recorder of operations for undo and redo.

  • NSURL

An NSURL object represents a URL that can potentially contain the location of a resource on a remote server, the path of a local file on disk, or even an arbitrary piece of encoded data.

  • NSURLAuthenticationChallenge

NSURLAuthenticationChallenge encapsulates a challenge from a server requiring authentication from the client.

  • NSURLCache

The NSURLCache class implements the caching of responses to URL load requests by mapping NSURLRequest objects to NSCachedURLResponse objects.

  • NSURLComponents

The NSURLComponents class is a class that is designed to parse URLs based on RFC 3986 and to construct URLs from their constituent parts.

  • NSURLConnection

An NSURLConnection object lets you load the contents of a URL by providing a URL request object.

  • NSURLCredential

NSURLCredential is an immutable object representing an authentication credential consisting of authentication information specific to the type of credential and the type of persistent storage to use, if any.

  • NSURLCredentialStorage

NSURLCredentialStorage implements a singleton (shared object) that manages the credential storage.

  • NSURLProtectionSpace

An NSURLProtectionSpace object represents a server or an area on a server, commonly referred to as a realm, that requires authentication.

  • NSURLProtocol

NSURLProtocol is an abstract class that provides the basic structure for performing protocol-specific loading of URL data.

  • NSURLQueryItem

An NSURLQueryItem object represents a single name/value pair for an item in the query portion of a URL.

  • NSURLRequest

NSURLRequest objects represent a URL load request in a manner independent of protocol and URL scheme.

    • NSMutableURLRequest

NSMutableURLRequest is a subclass of NSURLRequest provided to aid developers who may find it more convenient to mutate a single request object for a series of URL load requests instead of creating an immutable NSURLRequestobject for each load.

  • NSURLResponse

The NSURLResponse class encapsulates the metadata associated with the response to a a URL load request in a manner independent of protocol and URL scheme.

    • NSHTTPURLResponse

The NSHTTPURLResponse class is a subclass of NSURLResponse that provides methods for accessing information specific to HTTP protocol responses.

  • NSURLSession

The NSURLSession class and related classes provide an API for downloading content via HTTP.

  • NSURLSessionConfiguration

An NSURLSessionConfiguration object defines the behavior and policies to use when uploading and downloading data using an NSURLSession object.

  • NSURLSessionTask

The NSURLSessionTask class is the base class for tasks in a URL session.

    • NSURLSessionDataTask

An NSURLSessionDataTask is a concrete subclass of NSURLSessionTask.

      • NSURLSessionUploadTask

The NSURLSessionUploadTask class is a subclass of NSURLSessionDataTask, which in turn is a concrete subclass of NSURLSessionTask.

    • NSURLSessionDownloadTask

An NSURLSessionDownloadTask is a concrete subclass of NSURLSessionTask.

  • NSUserActivity

An NSUserActivity object encapsulates the state of a user activity in an application on a particular device in a way that allows the same activity to be continued on another device in a corresponding application from the same developer.

  • NSUserDefaults

The NSUserDefaults class provides a programmatic interface for interacting with the defaults system.

  • NSUUID

The NSUUID class creates UUID strings that are to uniquely identify types, interfaces, and other items.

  • NSValue

An NSValue object is a simple container for a single C or Objective-C data item.

    • NSNumber

NSNumber is a subclass of NSValue that offers a value as any C scalar (numeric) type.

      • NSDecimalNumber

NSDecimalNumber, an immutable subclass of NSNumber, provides an object-oriented wrapper for doing base-10 arithmetic.

  • NSValueTransformer

NSValueTransformer is an abstract class that is used by the Cocoa Bindings technology to transform values from one representation to another.

  • NSXMLParser

Instances of this class parse XML documents (including DTD declarations) in an event-driven manner.


NSProxy


NSProxy is an abstract superclass defining an API for objects that act as stand-ins for other objects or for objects that don’t exist yet.

时间: 2024-10-24 13:43:45

Foundation Classes的相关文章

iOS SDK详解之NSScanner-分析String

原创blog,转载请注明出处 blog.csdn.net/hello_hwc 欢迎关注我的iOS SDK详解专栏,这里有很多基础的文章 http://blog.csdn.net/column/details/huangwenchen-ios-sdk.html 前言:NSScanner是分析String,把String转为substring和数字的很好的工具.它使用一个NSString初始化,使用的时候通常从开头处扫描直到结尾. 本文会先举出两个例子,然后详细的讲解NSScanner的方法.源码是

Visual Studio中WPF和WFA程序的区别

WPF : Windows Presentation Foundation WPF是Windows用户界面框架,从.NET 3.0开始提供的统一编程模型,指的是Win32应用开发的一种(现阶段标准)呈现方法,符合以下流程 ||------------------------WPF开发模型过程------------------------------|| Form API ---> XAML绑定 ---> Windows窗口设计 ---> 程序完工 相比于MFC方法的改进,WPF使用XA

VC中,如何将十六进制字符串转换为十进制数?

原文链接:http://blog.csdn.net/bennyfun79/article/details/6934843 在程序中,我们有时需要将一个十六进制字符串转换为十进制数字.比如: 1 char *ptr="0x11"; 2 int n=0; 3 //我们想让n等于0x11,即17 通常我们在C中,想将一个字符串转换为一整形数字,通常会使用下面的方法: view plaincopy to clipboardprint? 1 char *ptr="123";

AFNetworking 系列教程

AFNetworking速成教程(1)  Scott Sherwood on March 26, 2013 Tweet 这篇文章还可以在这里找到 英语 Learn how to use AFNetworking: an easy to use network API for iOS! 本文是由 iOS Tutorial 小组成员 Scott Sherwood撰写,他是一个基于位置动态加载(Dynamically Loaded)的软件公司(专业的混合定位)的共同创办人. 网络 — 你的程序离开了它

API、Win32 SDK、Win32项目、MFC、Windows窗体应用程序的区别

[原]API.Win32 SDK.Win32项目.MFC.Windows窗体应用程序的区别 首先来看一下每一个术语的定义: API:Application Programming Interface.Windows操作系统提供给应用程序编程的接口, 简称 为API函数. Win32 SDK:SDK(Software Development Kit)中文是软件开发包.则Win32 SDK是Windows 32位平台下的软件开发包,包括了API函数.帮助文档.微软 提供的一些辅助开发工具. Win3

iphone使用开源代码Asyncsocket进行socket编程

iphone的标准推荐CFNetwork C库编程.但是编程比较烦躁.在其它OS往往用类来封装的对Socket函数的处理.比如MFC的CAsysncSocket.在iphone也有类似于开源项目.cocoa AsyncSocket库, 官方网站:http://code.google.com/p/cocoaasyncsocket/;它用来简化CFnetwork的调用. 一.在项目引入ASyncSocket库 1.下载ASyncSocket库源码 2.把ASyncSocket库源码加入项目:只需要增

MFC消息响应机制 q

MFC消息响应机制分析 1 引言微软公司提供的MFC基本类库(Microsoft Foundation Classes),是进行可视化编程时使用最为流行的一个类 库.MFC封装了大部分Windows API函数和Windows控件,使得程序的开发变得简单,极大的缩短了程序的开发 周期.MFC独创的Document/View框架结构,能够将管理数据的代码和显示数据的程序代码分开,并且设计了 一套方便的消息映射和命令传递机制,方便程序员的开发使用.其中消息映射机制本身比较庞大和复杂,对 它的分析和了

(转载)DLL动态链接库编程入门之三:MFC规则DLL(上)

上一节中讲解了非MFC DLL,本节将介绍如何创建MFC规则DLL及使用MFC规则DLL的方法. 一.MFC规则DLL概述 MFC规则DLL的概念体现在两方面: (1)它是MFC的 "是MFC的"意味着可以在这种DLL的内部使用MFC: (2)它是规则的 "是规则的"意味着它不同于MFC扩展DLL,在MFC规则DLL的内部虽然可以使用MFC,但是其与应用程序的接口不能是MFC.而MFC扩展DLL与应用程序的接口可以是MFC,可以从MFC扩展DLL中导出一个MFC类的

VC中的MFC到底是什么?

1. 微软基础类库(英语:Microsoft Foundation Classes,简称MFC)是一个微软公司提供的类库(class libraries),以C++类的形式封装了Windows API,并且包含一个应用程序框架,以减少应用程序开发人员的工作量.其中包含的类包含大量Windows句柄封装类和很多Windows的内建控件和组件的封装类. 2. MFC中最重要的封装是对Win32 API的封装,因此,理解Windows Object和MFC Object (C++对象,一个C++类的实