setArguments:
命令に引数をセットします
-(void)setArguments:(NSDictionary *)args:
解説
命令に引数をセットします。
返り値
( void )
なし
引数
( NSDictionary * )args
引数の辞書
フレームワーク
Foundation
クラス
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; }