macOS/iOS API解説

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

目次

setArguments:

命令に引数をセットします
-(void)setArguments:(NSDictionary *)args:

解説

命令に引数をセットします。

返り値

( void )

なし

引数

( NSDictionary * )args

引数の辞書

クラス

NSScriptCommand

Instance Methods

使用可能

10.0

参照

- arguments
- evaluatedArguments

例文

-(NSNumber *) retCommand:(NSScriptCommand *)sCommand
{
NSNumber * number = (NSNumber *)[[sCommand arguments] 
                                                objectForKey:@"withNumber"];
NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:100],@"withNumber",nil];
[sCommand setArguments:dic];
NSLog([[sCommand arguments] description]);
		return number;
	}