targetForAction method

ObjCObjectBase? targetForAction(
  1. Pointer<ObjCSelector> action
)

targetForAction:

Implementation

objc.ObjCObjectBase? targetForAction(ffi.Pointer<objc.ObjCSelector> action) {
  objc.checkOsVersionInternal(
    'NSApplication.targetForAction:',
    iOS: (true, null),
  );
  final _ret = _objc_msgSend_3ctkt6(
    this.ref.pointer,
    _sel_targetForAction_,
    action,
  );
  return _ret.address == 0
      ? null
      : objc.ObjCObjectBase(_ret, retain: true, release: true);
}