継承するクラス | NSObject |
準拠しているプロトコル | NSCoding NSCopying NSMutableCopying NSObject (NSObject) |
フレームワーク | /System/Library/Frameworks/Foundation.framework |
使用可能な環境 | Mac OS X v10.0 以降 |
宣言ファイル | NSPathUtilities.h NSString.h NSURL.h |
コンパニオンガイド | String Programming Guide for Cocoa Property List Programming Guide |
サンプルコード | CoreRecipes From A View to A Movie FunHouse GLSLShowpiece Quartz Composer WWDC 2005 TextEdit |
注:変更不能文字列とは生成時に定義され、その後変更できない文字列のことです。NSStringクラスはUnicode文字の配列(つまりUnicode文字列)を使って実装されています。変更不能文字列を生成、管理したいときはNSStringを使い、生成後に文字列を構成して管理したいときはNSMutableStringクラスを使用してください。 |
encodeWithCoder: initWithCoder:
copyWithZone:
mutableCopyWithZone: