[xcode13] Fix catalyst intro tests on macOS 12 (#12339)

Move a few macOS special cases into base class so they will apply to
Catalyst too.
This commit is contained in:
Sebastien Pouliot 2021-08-04 08:48:47 -04:00 коммит произвёл GitHub
Родитель dac58e4115
Коммит b39f3ac92d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 8 удалений

Просмотреть файл

@ -835,6 +835,11 @@ namespace Introspection {
break;
}
break;
case "NSTask":
// category, NSTask won't respond -> @interface NSTask (NSTaskConveniences)
if (selectorName == "waitUntilExit")
return true;
break;
}
// old binding mistake
@ -1063,6 +1068,10 @@ namespace Introspection {
case "initWithDataIgnoringOrientation:":
var mi = m as MethodInfo;
return mi != null && !mi.IsPublic && mi.ReturnType.Name == "IntPtr";
// NSAppleEventDescriptor
case "initListDescriptor":
case "initRecordDescriptor":
return true;
default:
return false;
}

Просмотреть файл

@ -155,11 +155,6 @@ namespace Introspection {
// compat.
return true;
#endif
case "waitUntilExit":
// category, NSTask won't respond -> @interface NSTask (NSTaskConveniences)
if (type.Name == "NSTask")
return true;
break;
case "readInBackgroundAndNotifyForModes:":
case "readInBackgroundAndNotify":
case "readToEndOfFileInBackgroundAndNotifyForModes:":
@ -1283,9 +1278,6 @@ namespace Introspection {
// QTMovie
case "movieWithTimeRange:error:":
case "initWithQuickTimeMedia:error:":
// NSAppleEventDescriptor
case "initListDescriptor":
case "initRecordDescriptor":
// NSAnimation
case "initWithDuration:animationCurve:":
return true;