Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FSEvents] Add support for Xcode 14 beta 5. #15707

Merged
merged 3 commits into from
Aug 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/CoreServices/FSEvents.cs
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,12 @@ public void Stop ()
static extern void FSEventStreamScheduleWithRunLoop (IntPtr handle,
IntPtr runLoop, IntPtr runLoopMode);

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

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