Mac Developer Library

Developer

Foundation Framework Reference NSGetCommand Class Reference

Options
Deployment Target:

On This Page
Language:

NSGetCommand

An instance of NSGetCommand gets the specified value or object from the specified scriptable object: for example, the words from a paragraph or the name of a document.

When an instance of NSGetCommand is executed, it evaluates the specified receivers, gathers the specified data, if any, and packages it in a return Apple event.

NSGetCommand is part of Cocoa’s built-in scripting support. It works automatically to support the get command through key-value coding. Most applications don’t need to subclass NSGetCommand or call its methods.

For information on working with get commands, see Getting and Setting Properties and Elements in Cocoa Scripting Guide.

Inheritance


Conforms To


Import Statement


Swift

import Foundation

Objective-C

@import Foundation;

Availability


Available in OS X v10.0 and later.