macOS/iOS API解説

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

目次

NSScriptCommandクラス

Index>Foundation>

apple(mac)
Macのみ

解説

継承 NSObject
準拠 NSObject (NSObject)
フレームワーク /System/Library/Frameworks/Foundation.framework
使用可能 Mac OS X v10.0以降
定義

概要

適合するプロトコル

メソッド

Initializing a Script Command

– initWithCommandDescription

Getting the Current Command

+ currentCommand

Getting the Apple Event

– appleEvent

Accessing the Direct Parameter

– directParameter
– setDirectParameter

Getting Command Information

– commandDescription
– isWellFormed

Handling Script Execution Errors

– scriptErrorExpectedTypeDescriptor
– scriptErrorNumber
– scriptErrorOffendingObjectDescriptor
– scriptErrorString
– setScriptErrorExpectedTypeDescriptor:
– setScriptErrorOffendingObjectDescriptor:
– setScriptErrorNumber
– setScriptErrorString

Suspending and Resuming Commands

– suspendExecution
– resumeExecutionWithResult

サブクラス化の注意