macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

descriptionWithLocale:

配列を文字列にして返します
-(NSString *)descriptionWithLocale:(id)locale

解説

配列をプロパティリスト形式の文字列にして返します。
フォーマットしたくない場合はnilをセットします。

返り値

( NSString * )

文字列

引数

( id )locale

ローカライズ辞書。NSDictionaryまたはNSLocale

クラス

NSArray

Instance Methods

使用可能

10.0
iOS2.0

参照

- description
- descriptionWithLocale:indent:

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
[myOutlet setStringValue:[[[NSArray alloc] initWithObjects:@"aaa",@"bbb",@"ccc",nil] descriptionWithLocale:nil]];

}

@end