スーパークラス | NSObject |
適合プロトコル | NSCopying NSMutableCopying NSSecureCoding NSObject (NSObject) |
フレームワーク | /System/Library/Frameworks/Foundation.framework |
サポート | Available in OS X v10.0 and later. |
宣言 | NSLinguisticTagger.h NSPathUtilities.h NSString.h NSURL.h |
関連するガイド | String Programming Guide Property List Programming Guide |
関連するサンプルコード | From A View to A Movie From A View to A Picture GLSLShowpiece QTCoreVideo301 Sketch+Accessibility |
- 準拠するプロトコル
- NSCoding
- encodeWithCoder:
- initWithCoder:
- NSCoding
- NSCopying
- copyWithZone:
- NSMutableCopying
- mutableCopyWithZone:
- Document Revision History
This table describes the changes to NSString Class Reference.
Date | Notes |
2013-09-18 | Updated for OS X v10.9. Changed return types to instancetype. Added stringByAddingPercentEncoding WithAllowedCharacters: and stringByRemovingPercentEncoding methods. |
Updated descriptions of compare:options:range:locale:, rangeOfString:options:range:locale:, and stringByFoldingWithOptions:locale: to correctly describe the default values of the locale argument. | |
Noted that writeToURL:atomically:encoding:error: and only supports file URLs. | |
Updated description of stringWithCString:encoding: to Note that it does Not supported 16-bit encodings. | |
Updated description of index argument of substringFromIndex: to indicate that it allows indexes up to the length of the string. | |
Added Note that the extended attribute written by writeToFile:atomically:encoding:error: and writeToURL:atomically:encoding:error: may be lengthened in the future, and anyone reading the current content should guard appropriately against receiving longer content. | |
2013-01-28 | Removed example implementation of rangeOfComposedCharacterSequencesForRange: that was provided in rangeOfComposedCharacterSequenceAtIndex:. |
2012-07-17 | Updated for OS X v10.8. |
2012-06-11 | Clarified discussions of stringByReplacingOccurrencesOfString:withString: options:range:, stringByAddingPercentEscapesUsingEncoding:, pathExtension, lastPathComponent, writeToFile:atomically:encoding:error:, and writeToURL:atomically:encoding:error: methods. Fixed various typos. |
2011-10-11 | Updated fileSystemRepresentation method to indicate it throws an exception on an empty string. |
2011-06-06 | Updated for OS X v10.7. Added new methods for linguistic tagging. |
Updated for OS X v10.7. Added new methods for linguistic tagging. | |
2010-02-25 | Added new NSRegularExpressionSearch constant. |
2009-08-28 | Noted that NSProprietaryStringEncoding has been deprecated. |
2009-05-29 | Updated for OS X v10.6. Added and clarified information about string sorting, enumeration, and composed character sequence methods. Deprecated getCharacters: method. Made minor corrections throughout. |
2009-02-04 | Changed the abstract of getCharacters: to more closely reflect that of getCharacters:range:. |
2008-10-15 | Corrected return value of longLongValue. Rephrased the abstracts of all the rangeOfCharacter... and rangeOfString... methods, and corrected name mismatches in their parameter descriptions. |
Rewrote description for the constant NSWidthInsensitiveSearch. Fixed bad cross reference in NSStringEncodingConversionOptions discussion. Added explanations of the effect of locale option on string comparison operations of compare:options:range:locale:, rangeOfString:options:range:locale:, and stringByFoldingWithOptions:locale:. | |
2008-03-11 | Added paragraph to introduction describing the byte-order assumptions of factory and initialization methods taking UTF-16 input. |
Clarified descriptions of getLineStart:end:contentsEnd:forRange:, getParagraphStart:end:contentsEnd:forRange:, componentsSeparatedByCharactersInSet:, and componentsSeparatedByString:. | |
2008-02-08 | Corrected a typographical error. |
2007-10-31 | Clarified the effect of the stringByStandardizingPath method. |
2007-08-23 | Added discussion Notes regarding comparison of strings to be presented to the user. |
2007-07-19 | Augmented the description of required buffer sizes in getCharacters: and getCString:. Added a warning about passing NULL to stringWithUTF8String: and initWithUTF8String:. |
2007-03-06 | Corrected discussion of initWithCharacters methods; clarified behavior of NoCopy: creation methods on failure. |
2007-02-08 | Enhanced the parameter descriptions for several methods. |
2006-11-07 | Warned not to pass NULL into stringWithUTF8String:. |
2006-10-03 | Augmented the description of required buffer sizes in the getCharacters: and getCString: methods. |
2006-06-28 | Clarified the return value of dataUsingEncoding:. |
2006-05-23 | Incorporated constants from Foundation Constants article. |
- Referred from
NSString Class Reference, Apple Developer Library
- Copyright © 2013 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2013-09-18