copyScriptingValue method

ObjCObjectBase? copyScriptingValue(
  1. ObjCObjectBase value, {
  2. required NSString forKey,
  3. required NSDictionary withProperties,
})

copyScriptingValue:forKey:withProperties:

Implementation

objc.ObjCObjectBase? copyScriptingValue(
  objc.ObjCObjectBase value, {
  required objc.NSString forKey,
  required objc.NSDictionary withProperties,
}) {
  objc.checkOsVersionInternal(
    'NSObject.copyScriptingValue:forKey:withProperties:',
    iOS: (true, null),
    macOS: (false, (10, 5, 0)),
  );
  final _ret = _objc_msgSend_11spmsz(
    this.ref.pointer,
    _sel_copyScriptingValue_forKey_withProperties_,
    value.ref.pointer,
    forKey.ref.pointer,
    withProperties.ref.pointer,
  );
  return _ret.address == 0
      ? null
      : objc.ObjCObjectBase(_ret, retain: false, release: true);
}