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:
authorLluis Sanchez <lluis@xamarin.com>2015-09-18 18:26:53 +0300
committerLluis Sanchez <lluis@xamarin.com>2015-09-18 18:26:53 +0300
commit14ac3321ee62f44eb4967a7a3d14b8486334beb4 (patch)
treea0f8f2aac6315b32f06811781c9d34014a64457d /Xwt.XamMac/Xwt.Mac/ImageHandler.cs
parent9479703b3101a9d9728fcca874cab7b51ae25a29 (diff)
Fix custom image marshalling issue
Implement the CopyWithZone method in Xwt.Mac.CustomImage since cells sometimes make clones of images.
Diffstat (limited to 'Xwt.XamMac/Xwt.Mac/ImageHandler.cs')
-rw-r--r--Xwt.XamMac/Xwt.Mac/ImageHandler.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Xwt.XamMac/Xwt.Mac/ImageHandler.cs b/Xwt.XamMac/Xwt.Mac/ImageHandler.cs
index cee04634..f36c98b6 100644
--- a/Xwt.XamMac/Xwt.Mac/ImageHandler.cs
+++ b/Xwt.XamMac/Xwt.Mac/ImageHandler.cs
@@ -342,6 +342,13 @@ namespace Xwt.Mac
{
return new CustomImage (actx, drawCallback);
}
+
+ #if !MONOMAC
+ public override NSObject Copy (NSZone zone)
+ {
+ return new CustomImage (actx, drawCallback);
+ }
+ #endif
}
}