Skip to content

Commit 85f6625

Browse files
[FSEvents] Add support for Xcode 14 beta 5. (#15707)
Co-authored-by: Alex Soto <[email protected]>
1 parent 553ed97 commit 85f6625

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/CoreServices/FSEvents.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,12 @@ public void Stop ()
504504
static extern void FSEventStreamScheduleWithRunLoop (IntPtr handle,
505505
IntPtr runLoop, IntPtr runLoopMode);
506506

507+
#if NET
508+
[Obsolete ("Starting with macOS13.0 use 'SetDispatchQueue' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
509+
[UnsupportedOSPlatform ("macos13.0")]
510+
#else
511+
[Deprecated (PlatformName.MacOSX, 13,0, message: "Use 'SetDispatchQueue' instead.")]
512+
#endif
507513
public void ScheduleWithRunLoop (CFRunLoop runLoop, NSString runLoopMode)
508514
{
509515
FSEventStreamScheduleWithRunLoop (GetCheckedHandle (), runLoop.Handle, runLoopMode.Handle);
@@ -528,6 +534,12 @@ public void ScheduleWithRunLoop (NSRunLoop runLoop)
528534
static extern void FSEventStreamUnscheduleFromRunLoop (IntPtr handle,
529535
IntPtr runLoop, IntPtr runLoopMode);
530536

537+
#if NET
538+
[Obsolete ("Starting with macOS13.0 use 'SetDispatchQueue' instead.", DiagnosticId = "BI1234", UrlFormat = "https://github.com/xamarin/xamarin-macios/wiki/Obsolete")]
539+
[UnsupportedOSPlatform ("macos13.0")]
540+
#else
541+
[Deprecated (PlatformName.MacOSX, 13,0, message: "Use 'SetDispatchQueue' instead.")]
542+
#endif
531543
public void UnscheduleFromRunLoop (CFRunLoop runLoop, NSString runLoopMode)
532544
{
533545
FSEventStreamScheduleWithRunLoop (GetCheckedHandle (), runLoop.Handle, runLoopMode.Handle);

0 commit comments

Comments
 (0)