Instance Method インスタンスメソッド

register(_:)

Registers command description commandDesc for use by Cocoa’s built-in scripting support by storing it in a per-suite internal dictionary under the command name. Cocoaのもつ組み込みスクリプティングサポートによって使うためのコマンド記述commandDescを、それをスイートごとの内部辞書にコマンド名の下で格納することによって登録します。

Declaration 宣言

func register(_ commandDescription: NSScriptCommandDescription)

Discussion 議論

Also registers with the single, shared instance of NSAppleEventManager to handle incoming Apple events that should be handled by the command. 同様にNSAppleEventManagerの単一の、共有インスタンスで登録して、コマンドによって扱われるべきやってくるアップルイベントを取り扱ってください。

See Also 参照

Getting and Registering Command Descriptions コマンド記述の取得と登録

Related Documentation 関連文書