tryToPerform method

bool tryToPerform(
  1. Pointer<ObjCSelector> action, {
  2. ObjCObjectBase? with$,
})

tryToPerform:with:

Implementation

bool tryToPerform(
  ffi.Pointer<objc.ObjCSelector> action, {
  objc.ObjCObjectBase? with$,
}) {
  objc.checkOsVersionInternal(
    'NSResponder.tryToPerform:with:',
    iOS: (true, null),
  );
  return _objc_msgSend_1f04296(
    this.ref.pointer,
    _sel_tryToPerform_with_,
    action,
    with$?.ref.pointer ?? ffi.nullptr,
  );
}