[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:
Родитель
dac58e4115
Коммит
b39f3ac92d
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче