Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandy Armstrong <sandy@xamarin.com>2022-06-13 17:30:36 +0300
committerGitHub <noreply@github.com>2022-06-13 17:30:36 +0300
commit941d48e671d7cda4f09ff5b6571a2534dfc88dcd (patch)
treed221d46faff89dfe5db9c3ce9e7159f890c702c5
parentdd7d024f132f2a533e1f82a66a8832f903ef042a (diff)
parent538ef0ac98b3ec3889512d77cf60e12a829c69bf (diff)
Merge pull request #1103 from mono/dev/sandy/macos-rc3
Update for macos workload RC3 API changes
-rw-r--r--Xwt.XamMac/Xwt.Mac/AccerssibilityHelper.cs2
-rw-r--r--Xwt.XamMac/Xwt.Mac/MacEngine.cs4
-rw-r--r--Xwt.XamMac/Xwt.Mac/NSApplicationInitializer.cs2
-rw-r--r--Xwt.XamMac/Xwt.Mac/PopupWindowBackend.cs2
-rw-r--r--Xwt.XamMac/Xwt.Mac/RichTextViewBackend.cs10
-rw-r--r--Xwt.XamMac/Xwt.Mac/Util.cs2
-rw-r--r--Xwt.XamMac/Xwt.Mac/WindowBackend.cs2
7 files changed, 13 insertions, 11 deletions
diff --git a/Xwt.XamMac/Xwt.Mac/AccerssibilityHelper.cs b/Xwt.XamMac/Xwt.Mac/AccerssibilityHelper.cs
index 7fbbb6d0..ee448efe 100644
--- a/Xwt.XamMac/Xwt.Mac/AccerssibilityHelper.cs
+++ b/Xwt.XamMac/Xwt.Mac/AccerssibilityHelper.cs
@@ -109,7 +109,7 @@ namespace Xwt.Mac
using (var dictionary = new NSDictionary(NSAccessibilityNotificationUserInfoKeys.AnnouncementKey, msg,
NSAccessibilityNotificationUserInfoKeys.PriorityKey, polite ? NSAccessibilityPriorityLevel.Medium : NSAccessibilityPriorityLevel.High))
{
- NSAccessibility.PostNotification(nsObject, NSAccessibilityNotifications.AnnouncementRequestedNotification, dictionary);
+ NSAccessibility.PostNotification(nsObject, NSView.AnnouncementRequestedNotification, dictionary);
}
}
}
diff --git a/Xwt.XamMac/Xwt.Mac/MacEngine.cs b/Xwt.XamMac/Xwt.Mac/MacEngine.cs
index 3195ed7d..57e69113 100644
--- a/Xwt.XamMac/Xwt.Mac/MacEngine.cs
+++ b/Xwt.XamMac/Xwt.Mac/MacEngine.cs
@@ -190,8 +190,8 @@ namespace Xwt.Mac
if (!action ())
timer.Invalidate ();
});
- runLoop.AddTimer (timer, NSRunLoop.NSDefaultRunLoopMode);
- runLoop.AddTimer (timer, NSRunLoop.NSRunLoopModalPanelMode);
+ runLoop.AddTimer (timer, NSRunLoopMode.Default);
+ runLoop.AddTimer (timer, NSRunLoopMode.ModalPanel);
return timer;
}
diff --git a/Xwt.XamMac/Xwt.Mac/NSApplicationInitializer.cs b/Xwt.XamMac/Xwt.Mac/NSApplicationInitializer.cs
index 915d2a07..a9754d28 100644
--- a/Xwt.XamMac/Xwt.Mac/NSApplicationInitializer.cs
+++ b/Xwt.XamMac/Xwt.Mac/NSApplicationInitializer.cs
@@ -41,8 +41,6 @@ namespace Xwt.Mac
if (System.Threading.Thread.GetData (ds) == null) {
System.Threading.Thread.SetData (ds, true);
- NSApplication.IgnoreMissingAssembliesDuringRegistration = true;
-
// Setup a registration handler that does not let Xamarin.Mac register assemblies by default.
Runtime.AssemblyRegistration += Runtime_AssemblyRegistration;
diff --git a/Xwt.XamMac/Xwt.Mac/PopupWindowBackend.cs b/Xwt.XamMac/Xwt.Mac/PopupWindowBackend.cs
index d3bac419..ac60a298 100644
--- a/Xwt.XamMac/Xwt.Mac/PopupWindowBackend.cs
+++ b/Xwt.XamMac/Xwt.Mac/PopupWindowBackend.cs
@@ -550,7 +550,7 @@ namespace Xwt.Mac
ContentView.RemoveObserver(this, HiddenProperty);
// HACK: Xamarin.Mac/MonoMac limitation: no direct way to release a window manually
- // A NSWindow instance will be removed from NSApplication.SharedApplication.Windows
+ // A NSWindow instance will be removed from NSApplication.SharedApplication.DangerousWindows
// only if it is being closed with ReleasedWhenClosed set to true but not on Dispose
// and there is no managed way to tell Cocoa to release the window manually (and to
// remove it from the active window list).
diff --git a/Xwt.XamMac/Xwt.Mac/RichTextViewBackend.cs b/Xwt.XamMac/Xwt.Mac/RichTextViewBackend.cs
index ceed7af9..2c010644 100644
--- a/Xwt.XamMac/Xwt.Mac/RichTextViewBackend.cs
+++ b/Xwt.XamMac/Xwt.Mac/RichTextViewBackend.cs
@@ -326,9 +326,13 @@ namespace Xwt.Mac
TextStorage.EnumerateAttributes (new NSRange (0, TextStorage.Length), NSAttributedStringEnumeration.None, (NSDictionary attrs, NSRange range, ref bool stop) => {
stop = false;
if (attrs.ContainsKey (NSStringAttributeKey.Link)) {
- var rects = GetRects (range);
- for (nuint i = 0; i < rects.Count; i++)
- AddCursorRect (rects.GetItem<NSValue> (i).CGRectValue, NSCursor.PointingHandCursor);
+ // TODO: Reimplement this to get proper mouse cursor for link text.
+ // GetRects comes from NSTextFinderClient, which NSTextView does not officially implement
+ // so it is no longer bound. However, NSTextView does unofficially support this protocol
+ // so this could be fixed by manually sending the getRects: message.
+ // var rects = GetRects (range);
+ // for (nuint i = 0; i < rects.Count; i++)
+ // AddCursorRect (rects.GetItem<NSValue> (i).CGRectValue, NSCursor.PointingHandCursor);
}
});
}
diff --git a/Xwt.XamMac/Xwt.Mac/Util.cs b/Xwt.XamMac/Xwt.Mac/Util.cs
index 6093bcda..7faa2431 100644
--- a/Xwt.XamMac/Xwt.Mac/Util.cs
+++ b/Xwt.XamMac/Xwt.Mac/Util.cs
@@ -612,7 +612,7 @@ namespace Xwt.Mac
// apply color matrix
var transformColor = new CIColorMatrix();
transformColor.SetDefaults();
- transformColor.Image = ciImage;
+ transformColor.InputImage = ciImage;
transformColor.RVector = new CIVector(0, (float)color.Value.Red, 0);
transformColor.GVector = new CIVector((float)color.Value.Green, 0, 0);
transformColor.BVector = new CIVector(0, 0, (float)color.Value.Blue);
diff --git a/Xwt.XamMac/Xwt.Mac/WindowBackend.cs b/Xwt.XamMac/Xwt.Mac/WindowBackend.cs
index dcf904ea..e5eccac8 100644
--- a/Xwt.XamMac/Xwt.Mac/WindowBackend.cs
+++ b/Xwt.XamMac/Xwt.Mac/WindowBackend.cs
@@ -488,7 +488,7 @@ namespace Xwt.Mac
if (XamMacDangerousDispose) {
// HACK: Xamarin.Mac/MonoMac limitation: no direct way to release a window manually
- // A NSWindow instance will be removed from NSApplication.SharedApplication.Windows
+ // A NSWindow instance will be removed from NSApplication.SharedApplication.DangerousWindows
// only if it is being closed with ReleasedWhenClosed set to true but not on Dispose
// and there is no managed way to tell Cocoa to release the window manually (and to
// remove it from the active window list).