初始化

This commit is contained in:
xhm
2023-11-21 23:05:03 +08:00
commit 2455630dad
2252 changed files with 466529 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
using CPF.Mac.ObjCRuntime;
using System;
namespace CPF.Mac.Foundation
{
public class NSUndoManagerCloseUndoGroupEventArgs : NSNotificationEventArgs
{
private static IntPtr k0;
public bool? Discardable
{
get
{
if (k0 == IntPtr.Zero)
{
k0 = Dlfcn.GetIntPtr(Libraries.Foundation.Handle, "NSUndoManagerGroupIsDiscardableKey");
}
if (base.Notification.UserInfo == null)
{
return null;
}
IntPtr intPtr = base.Notification.UserInfo.LowlevelObjectForKey(k0);
if (intPtr == IntPtr.Zero)
{
return null;
}
using (NSNumber nSNumber = new NSNumber(intPtr))
{
return nSNumber.BoolValue;
}
}
}
public NSUndoManagerCloseUndoGroupEventArgs(NSNotification notification)
: base(notification)
{
}
}
}