Given an object specifier, returns the specified object or objects in the receiving container.
- macOS 10.5+
An object specifier to be evaluated.
The specified object or objects in the receiving container.
This method might successfully return an object, an array of objects, or
nil, depending on the kind of object specifier. Because
nil is a valid return value, failure is signaled by invoking the object specifier’s
set method before returning.
You can override this method to customize the evaluation of object specifiers without requiring that the scripting container make up indexes for contained objects that don't naturally have indexes (as can be the case if you implement
Your override of this method doesn't need to also invoke any of the
NSScript error signaling methods, though it can, to record very specific information. The
NSInvalid numbers are special, in that Cocoa may continue evaluating an outer specifier if they're encountered, for the convenience of scripters.