getInfoForFile method

bool getInfoForFile(
  1. NSString fullPath, {
  2. required Pointer<Pointer<ObjCObject>> application,
  3. required Pointer<Pointer<ObjCObject>> type,
})

getInfoForFile:application:type:

Implementation

bool getInfoForFile(
  objc.NSString fullPath, {
  required ffi.Pointer<ffi.Pointer<objc.ObjCObject>> application,
  required ffi.Pointer<ffi.Pointer<objc.ObjCObject>> type,
}) {
  objc.checkOsVersionInternal(
    'NSWorkspace.getInfoForFile:application:type:',
    iOS: (true, null),
    macOS: (false, (10, 0, 0)),
  );
  return _objc_msgSend_tyshih(
    this.ref.pointer,
    _sel_getInfoForFile_application_type_,
    fullPath.ref.pointer,
    application,
    type,
  );
}