objectsWithOptions method

NSSet objectsWithOptions(
  1. int opts, {
  2. required ObjCBlock<Bool Function(Pointer<ObjCObjectImpl>, Pointer<Bool>)> passingTest,
})

objectsWithOptions:passingTest:

Implementation

NSSet objectsWithOptions(
  int opts, {
  required objc.ObjCBlock<
    ffi.Bool Function(ffi.Pointer<objc.ObjCObjectImpl>, ffi.Pointer<ffi.Bool>)
  >
  passingTest,
}) {
  objc.checkOsVersionInternal(
    'NSSet.objectsWithOptions:passingTest:',
    iOS: (false, (4, 0, 0)),
    macOS: (false, (10, 6, 0)),
  );
  final $ret = _objc_msgSend_13x5boi(
    object$.ref.pointer,
    _sel_objectsWithOptions_passingTest_,
    opts,
    passingTest.ref.pointer,
  );
  return NSSet.fromPointer($ret, retain: true, release: true);
}