[mac] AppKit Xcode 10 beta 1 (#4326)
This commit is contained in:
Родитель
a76a7f6f80
Коммит
48767e21eb
|
@ -23,6 +23,7 @@
|
|||
//
|
||||
using System;
|
||||
using ObjCRuntime;
|
||||
using Foundation;
|
||||
|
||||
namespace AppKit {
|
||||
|
||||
|
@ -137,6 +138,7 @@ namespace AppKit {
|
|||
}
|
||||
|
||||
[Native]
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14)]
|
||||
public enum NSBackingStore : ulong {
|
||||
[Deprecated (PlatformName.MacOSX, 10, 13, message : "Use 'Buffered' instead.")]
|
||||
Retained,
|
||||
|
@ -337,7 +339,14 @@ namespace AppKit {
|
|||
|
||||
[Native]
|
||||
public enum NSBackgroundStyle : long {
|
||||
Light, Dark, Raised, Lowered
|
||||
Normal = 0,
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'Normal' instead.")]
|
||||
Light = Normal,
|
||||
Emphasized,
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14, message : "Use 'Emphasized' instead.")]
|
||||
Dark = Emphasized,
|
||||
Raised,
|
||||
Lowered,
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
@ -877,6 +886,7 @@ namespace AppKit {
|
|||
DocModal = 1 << 6,
|
||||
NonactivatingPanel = 1 << 7,
|
||||
TexturedBackground = 1 << 8,
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14)]
|
||||
Unscaled = 1 << 11,
|
||||
UnifiedTitleAndToolbar = 1 << 12,
|
||||
Hud = 1 << 13,
|
||||
|
@ -984,8 +994,10 @@ namespace AppKit {
|
|||
[Native]
|
||||
public enum NSBoxType : ulong {
|
||||
NSBoxPrimary,
|
||||
[Advice ("Identical to 'NSBoxPrimary'.")]
|
||||
NSBoxSecondary,
|
||||
NSBoxSeparator,
|
||||
[Advice ("'NSBoxOldStyle' is discouraged. Use 'NSBoxPrimary' or 'NSBoxCustom'.")]
|
||||
NSBoxOldStyle,
|
||||
NSBoxCustom
|
||||
};
|
||||
|
@ -1487,21 +1499,34 @@ namespace AppKit {
|
|||
}
|
||||
|
||||
[Native]
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14)]
|
||||
public enum NSScrollArrowPosition : ulong {
|
||||
MaxEnd, MinEnd, DefaultSetting, None
|
||||
}
|
||||
|
||||
[Native]
|
||||
public enum NSUsableScrollerParts : ulong {
|
||||
NoScroller, OnlyArrows, All
|
||||
NoScroller,
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14)]
|
||||
OnlyArrows,
|
||||
All,
|
||||
}
|
||||
|
||||
[Native]
|
||||
public enum NSScrollerPart : ulong {
|
||||
None, DecrementPage, Knob, IncrementPage, DecrementLine, IncrementLine, KnobSlot
|
||||
None,
|
||||
DecrementPage,
|
||||
Knob,
|
||||
IncrementPage,
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14)]
|
||||
DecrementLine,
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14)]
|
||||
IncrementLine,
|
||||
KnobSlot,
|
||||
}
|
||||
|
||||
[Native]
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14)]
|
||||
public enum NSScrollerArrow : ulong {
|
||||
IncrementArrow, DecrementArrow
|
||||
}
|
||||
|
@ -2101,6 +2126,7 @@ namespace AppKit {
|
|||
}
|
||||
|
||||
[Native]
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14)]
|
||||
public enum NSProgressIndicatorThickness : ulong {
|
||||
Small = 10,
|
||||
Regular = 14,
|
||||
|
@ -2139,6 +2165,7 @@ namespace AppKit {
|
|||
[Native]
|
||||
public enum NSWindowLevel : long {
|
||||
Normal = 0,
|
||||
[Deprecated (PlatformName.MacOSX, 10, 13)]
|
||||
Dock = 20,
|
||||
Floating = 3,
|
||||
MainMenu = 24,
|
||||
|
@ -2499,8 +2526,11 @@ namespace AppKit {
|
|||
#region NSVisualEffectView
|
||||
[Native]
|
||||
public enum NSVisualEffectMaterial : long {
|
||||
[Advice ("Use a specific material instead.")]
|
||||
AppearanceBased,
|
||||
[Advice ("Use a semantic material instead.")]
|
||||
Light,
|
||||
[Advice ("Use a semantic material instead.")]
|
||||
Dark,
|
||||
Titlebar,
|
||||
Selection,
|
||||
|
@ -2511,9 +2541,29 @@ namespace AppKit {
|
|||
[Mac (10,11)]
|
||||
Sidebar,
|
||||
[Mac (10,11)]
|
||||
[Advice ("Use a semantic material instead.")]
|
||||
MediumLight,
|
||||
[Mac (10,11)]
|
||||
[Advice ("Use a semantic material instead.")]
|
||||
UltraDark,
|
||||
[Mac (10,14)]
|
||||
HeaderView = 10,
|
||||
[Mac (10,14)]
|
||||
Sheet = 11,
|
||||
[Mac (10,14)]
|
||||
WindowBackground = 12,
|
||||
[Mac (10,14)]
|
||||
HUDWindow = 13,
|
||||
[Mac (10,14)]
|
||||
FullScreenUI = 15,
|
||||
[Mac (10,14)]
|
||||
ToolTip = 17,
|
||||
[Mac (10,14)]
|
||||
ContentBackground = 18,
|
||||
[Mac (10,14)]
|
||||
UnderWindowBackground = 21,
|
||||
[Mac (10,14)]
|
||||
UnderPageBackground = 22,
|
||||
}
|
||||
|
||||
[Native]
|
||||
|
@ -2849,4 +2899,14 @@ namespace AppKit {
|
|||
FillEqually,
|
||||
FillProportionally,
|
||||
}
|
||||
|
||||
[Mac (10,14, onlyOn64: true)]
|
||||
[Native]
|
||||
public enum NSColorSystemEffect : long {
|
||||
None,
|
||||
Pressed,
|
||||
DeepPressed,
|
||||
Disabled,
|
||||
Rollover,
|
||||
}
|
||||
}
|
||||
|
|
|
@ -202,9 +202,11 @@ namespace AppKit {
|
|||
public extern static void DrawWindowBackground (CGRect aRect);
|
||||
|
||||
[DllImport (Constants.AppKitLibrary, EntryPoint="NSDisableScreenUpdates")]
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14, message : "Not usually necessary, 'NSAnimationContext.RunAnimation' can be used instead and not suffer from performance issues.")]
|
||||
public extern static void DisableScreenUpdates ();
|
||||
|
||||
[DllImport (Constants.AppKitLibrary, EntryPoint="NSEnableScreenUpdates")]
|
||||
[Deprecated (PlatformName.MacOSX, 10, 14, message : "Not usually necessary, 'NSAnimationContext.RunAnimation' can be used instead and not suffer from performance issues.")]
|
||||
public extern static void EnableScreenUpdates ();
|
||||
|
||||
}
|
||||
|
|
|
@ -122,6 +122,7 @@ enum Platform : ulong
|
|||
Mac_10_11_3 = 0x10000000000b0300,
|
||||
Mac_10_12 = 0x10000000000c0000,
|
||||
Mac_10_13 = 0x10000000000d0000,
|
||||
Mac_10_14 = 0x10000000000e0000,
|
||||
|
||||
// 0xT000000000MMmmss
|
||||
Watch_Version = 0x2000000000ffffff,
|
||||
|
|
905
src/appkit.cs
905
src/appkit.cs
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -480,6 +480,7 @@ namespace Introspection
|
|||
"Udp",
|
||||
"Unconfigured",
|
||||
"Undecodable",
|
||||
"Unemphasized",
|
||||
"Underrun",
|
||||
"Unflagged",
|
||||
"Unfocusing",
|
||||
|
|
|
@ -621,44 +621,30 @@
|
|||
!missing-protocol! NSInputServerMouseTracker not bound
|
||||
!missing-protocol! NSInputServiceProvider not bound
|
||||
!missing-protocol! NSTextAttachmentCell not bound
|
||||
!missing-protocol! NSTextInput not bound
|
||||
!missing-protocol! NSTextLayoutOrientationProvider not bound
|
||||
!missing-protocol! NSTokenFieldCellDelegate not bound
|
||||
!missing-protocol! NSUserInterfaceItemSearching not bound
|
||||
!missing-protocol-conformance! NSApplication should conform to NSUserInterfaceValidations
|
||||
!missing-protocol-conformance! NSButton should conform to NSUserInterfaceValidations
|
||||
!missing-protocol-conformance! NSCollectionViewItem should conform to NSCollectionViewElement
|
||||
!missing-protocol-conformance! NSColorPicker should conform to NSColorPickingDefault
|
||||
!missing-protocol-conformance! NSDocument should conform to NSFilePresenter
|
||||
!missing-protocol-conformance! NSDocument should conform to NSUserInterfaceValidations
|
||||
!missing-protocol-conformance! NSDocumentController should conform to NSUserInterfaceValidations
|
||||
!missing-protocol-conformance! NSFontAssetRequest should conform to NSProgressReporting
|
||||
!missing-protocol-conformance! NSLayoutConstraint should conform to NSAnimatablePropertyContainer
|
||||
!missing-protocol-conformance! NSMatrix should conform to NSUserInterfaceValidations
|
||||
!missing-protocol-conformance! NSMenu should conform to NSAccessibilityElement
|
||||
!missing-protocol-conformance! NSMenuItem should conform to NSAccessibilityElement
|
||||
!missing-protocol-conformance! NSMenuItem should conform to NSValidatedUserInterfaceItem
|
||||
!missing-protocol-conformance! NSOpenGLContext should conform to NSLocking
|
||||
!missing-protocol-conformance! NSOutlineView should conform to NSAccessibilityOutline
|
||||
!missing-protocol-conformance! NSPageController should conform to NSAnimatablePropertyContainer
|
||||
!missing-protocol-conformance! NSPathCell should conform to NSOpenSavePanelDelegate
|
||||
!missing-protocol-conformance! NSSplitViewItem should conform to NSAnimatablePropertyContainer
|
||||
!missing-protocol-conformance! NSTableView should conform to NSTextViewDelegate
|
||||
!missing-protocol-conformance! NSTableView should conform to NSUserInterfaceValidations
|
||||
!missing-protocol-conformance! NSText should conform to NSChangeSpelling
|
||||
!missing-protocol-conformance! NSText should conform to NSIgnoreMisspelledWords
|
||||
!missing-protocol-conformance! NSTextAttachment should conform to NSTextAttachmentContainer
|
||||
!missing-protocol-conformance! NSTextAttachmentCell should conform to NSTextAttachmentCell
|
||||
!missing-protocol-conformance! NSTextContainer should conform to NSTextLayoutOrientationProvider
|
||||
!missing-protocol-conformance! NSTextField should conform to NSUserInterfaceValidations
|
||||
!missing-protocol-conformance! NSTextView should conform to NSTextInput
|
||||
!missing-protocol-conformance! NSTextView should conform to NSTextLayoutOrientationProvider
|
||||
!missing-protocol-conformance! NSTextView should conform to NSUserInterfaceValidations
|
||||
!missing-protocol-conformance! NSTitlebarAccessoryViewController should conform to NSAnimatablePropertyContainer
|
||||
!missing-protocol-conformance! NSToolbarItem should conform to NSValidatedUserInterfaceItem
|
||||
!missing-protocol-conformance! NSView should conform to NSAnimatablePropertyContainer
|
||||
!missing-protocol-conformance! NSWindow should conform to NSAnimatablePropertyContainer
|
||||
!missing-protocol-conformance! NSWindow should conform to NSUserInterfaceValidations
|
||||
!missing-protocol-member! NSApplicationDelegate::applicationDidChangeOcclusionState: not found
|
||||
!missing-protocol-member! NSBrowserDelegate::browser:draggingImageForRowsWithIndexes:inColumn:withEvent:offset: not found
|
||||
!missing-protocol-member! NSCollectionViewDelegate::collectionView:draggingImageForItemsAtIndexes:withEvent:offset: not found
|
||||
|
@ -920,7 +906,6 @@
|
|||
!missing-selector! NSObject::fontManager:willIncludeFont: not bound
|
||||
!missing-selector! NSObject::layer:shouldInheritContentsScale:fromWindow: not bound
|
||||
!missing-selector! NSObject::namesOfPromisedFilesDroppedAtDestination: not bound
|
||||
!missing-selector! NSObject::objectDidBeginEditing: not bound
|
||||
!missing-selector! NSObject::panel:compareFilename:with:caseSensitive: not bound
|
||||
!missing-selector! NSObject::panel:directoryDidChange: not bound
|
||||
!missing-selector! NSObject::panel:isValidFilename: not bound
|
||||
|
@ -929,7 +914,6 @@
|
|||
!missing-selector! NSObject::pasteboardChangedOwner: not bound
|
||||
!missing-selector! NSObject::tableView:writeRows:toPasteboard: not bound
|
||||
!missing-selector! NSObject::validateMenuItem: not bound
|
||||
!missing-selector! NSObject::validateToolbarItem: not bound
|
||||
!missing-selector! NSObject::view:stringForToolTip:point:userData: not bound
|
||||
!missing-selector! NSObjectController::fetchWithRequest:merge:error: not bound
|
||||
!missing-selector! NSObjectController::managedObjectContext not bound
|
||||
|
@ -1151,3 +1135,20 @@
|
|||
|
||||
## NSGlyphStorage protocol not bound
|
||||
!missing-protocol-conformance! NSLayoutManager should conform to NSGlyphStorage (defined in 'NSGlyphGeneration' category)
|
||||
|
||||
## Fixed in XAMCORE_4_0
|
||||
!missing-protocol-conformance! NSController should conform to NSEditor
|
||||
!missing-protocol-conformance! NSDocument should conform to NSUserInterfaceValidations
|
||||
!missing-protocol-conformance! NSDocumentController should conform to NSUserInterfaceValidations
|
||||
!missing-protocol-conformance! NSTextView should conform to NSColorChanging
|
||||
|
||||
## NSStandardKeyBindingResponding is strange case - technically on NSResponder but responder subclasses can implement any that make sense.
|
||||
!missing-protocol-conformance! NSTextView should conform to NSStandardKeyBindingResponding
|
||||
!missing-protocol-conformance! NSResponder should conform to NSStandardKeyBindingResponding (defined in 'NSStandardKeyBindingMethods' category)
|
||||
|
||||
## 41367075 NSSecureTextField header claims NSViewToolTipOwner but does not respond to selector
|
||||
!missing-protocol-conformance! NSSecureTextField should conform to NSViewToolTipOwner
|
||||
|
||||
## DoCommandBySelector conflicts with NSTextViewDelegate in generated code
|
||||
!missing-protocol-member! NSTextInput::doCommandBySelector: not found
|
||||
|
||||
|
|
|
@ -1,78 +1,6 @@
|
|||
!missing-enum! NSColorSystemEffect not bound
|
||||
!missing-field! NSAppearanceNameAccessibilityHighContrastAqua not bound
|
||||
!missing-field! NSAppearanceNameAccessibilityHighContrastDarkAqua not bound
|
||||
!missing-field! NSAppearanceNameAccessibilityHighContrastVibrantDark not bound
|
||||
!missing-field! NSAppearanceNameAccessibilityHighContrastVibrantLight not bound
|
||||
!missing-field! NSAppearanceNameDarkAqua not bound
|
||||
!missing-protocol! NSColorChanging not bound
|
||||
!missing-protocol! NSEditor not bound
|
||||
!missing-protocol! NSEditorRegistration not bound
|
||||
!missing-protocol! NSFontChanging not bound
|
||||
!missing-protocol! NSMenuItemValidation not bound
|
||||
!missing-protocol! NSPasteboardTypeOwner not bound
|
||||
!missing-protocol! NSStandardKeyBindingResponding not bound
|
||||
!missing-protocol! NSToolbarItemValidation not bound
|
||||
!missing-protocol! NSViewLayerContentScaleDelegate not bound
|
||||
!missing-protocol! NSViewToolTipOwner not bound
|
||||
!missing-protocol-conformance! NSApplication should conform to NSAppearanceCustomization (defined in 'NSAppearanceCustomization' category)
|
||||
!missing-protocol-conformance! NSApplication should conform to NSMenuItemValidation
|
||||
!missing-protocol-conformance! NSController should conform to NSEditor
|
||||
!missing-protocol-conformance! NSController should conform to NSEditorRegistration
|
||||
!missing-protocol-conformance! NSDocument should conform to NSEditorRegistration
|
||||
!missing-protocol-conformance! NSDocument should conform to NSMenuItemValidation
|
||||
!missing-protocol-conformance! NSDocumentController should conform to NSMenuItemValidation
|
||||
!missing-protocol-conformance! NSFontManager should conform to NSMenuItemValidation
|
||||
!missing-protocol-conformance! NSImageView should conform to NSMenuItemValidation
|
||||
!missing-protocol-conformance! NSMatrix should conform to NSViewToolTipOwner
|
||||
!missing-protocol-conformance! NSPathCell should conform to NSMenuItemValidation
|
||||
!missing-protocol-conformance! NSPopUpButtonCell should conform to NSMenuItemValidation
|
||||
!missing-protocol-conformance! NSResponder should conform to NSStandardKeyBindingResponding (defined in 'NSStandardKeyBindingMethods' category)
|
||||
!missing-protocol-conformance! NSSecureTextField should conform to NSViewToolTipOwner
|
||||
!missing-protocol-conformance! NSTableHeaderView should conform to NSViewToolTipOwner
|
||||
!missing-protocol-conformance! NSTextView should conform to NSColorChanging
|
||||
!missing-protocol-conformance! NSTextView should conform to NSMenuItemValidation
|
||||
!missing-protocol-conformance! NSTextView should conform to NSStandardKeyBindingResponding
|
||||
!missing-protocol-conformance! NSToolbarItem should conform to NSMenuItemValidation
|
||||
!missing-protocol-conformance! NSViewController should conform to NSEditor
|
||||
!missing-protocol-conformance! NSWindow should conform to NSMenuItemValidation
|
||||
!missing-protocol-member! NSApplicationDelegate::application:delegateHandlesKey: not found
|
||||
!missing-protocol-member! NSControlTextEditingDelegate::controlTextDidBeginEditing: not found
|
||||
!missing-protocol-member! NSControlTextEditingDelegate::controlTextDidChange: not found
|
||||
!missing-protocol-member! NSControlTextEditingDelegate::controlTextDidEndEditing: not found
|
||||
!missing-selector! +NSAnimationContext::runAnimationGroup: not bound
|
||||
!missing-selector! +NSColor::alternatingContentBackgroundColors not bound
|
||||
!missing-selector! +NSColor::controlAccentColor not bound
|
||||
!missing-selector! +NSColor::findHighlightColor not bound
|
||||
!missing-selector! +NSColor::placeholderTextColor not bound
|
||||
!missing-selector! +NSColor::selectedContentBackgroundColor not bound
|
||||
!missing-selector! +NSColor::separatorColor not bound
|
||||
!missing-selector! +NSColor::unemphasizedSelectedContentBackgroundColor not bound
|
||||
!missing-selector! +NSColor::unemphasizedSelectedTextBackgroundColor not bound
|
||||
!missing-selector! +NSColor::unemphasizedSelectedTextColor not bound
|
||||
!missing-selector! NSAppearance::bestMatchFromAppearancesWithNames: not bound
|
||||
!missing-selector! NSApplication::appearance not bound
|
||||
!missing-selector! NSApplication::effectiveAppearance not bound
|
||||
!missing-selector! NSApplication::isRegisteredForRemoteNotifications not bound
|
||||
!missing-selector! NSApplication::setAppearance: not bound
|
||||
!missing-selector! NSButton::contentTintColor not bound
|
||||
!missing-selector! NSButton::setContentTintColor: not bound
|
||||
!missing-selector! NSColor::colorWithSystemEffect: not bound
|
||||
!missing-selector! NSImageView::contentTintColor not bound
|
||||
!missing-selector! NSImageView::setContentTintColor: not bound
|
||||
!missing-selector! NSMenu::setItemArray: not bound
|
||||
!missing-selector! NSSliderCell::setImage: not bound
|
||||
!missing-selector! NSTabView::setTabViewItems: not bound
|
||||
!missing-selector! NSTextAttachmentCell::setCellBaselineOffset: not bound
|
||||
!missing-selector! NSTextView::performValidatedReplacementInRange:withAttributedString: not bound
|
||||
!missing-selector! NSToolbar::centeredItemIdentifier not bound
|
||||
!missing-selector! NSToolbar::setCenteredItemIdentifier: not bound
|
||||
!missing-selector! NSWindow::appearanceSource not bound
|
||||
!missing-selector! NSWindow::convertPointFromBacking: not bound
|
||||
!missing-selector! NSWindow::convertPointFromScreen: not bound
|
||||
!missing-selector! NSWindow::convertPointToBacking: not bound
|
||||
!missing-selector! NSWindow::convertPointToScreen: not bound
|
||||
!missing-selector! NSWindow::setAppearanceSource: not bound
|
||||
## appended from unclassified file
|
||||
!missing-protocol-conformance! NSBezierPath should conform to NSSecureCoding
|
||||
!missing-protocol-conformance! NSGradient should conform to NSSecureCoding
|
||||
!missing-protocol-conformance! NSShadow should conform to NSSecureCoding
|
||||
|
|
|
@ -652,6 +652,11 @@ namespace Xamarin.Bundler {
|
|||
if (rv.Minor == 11 && XcodeVersion >= new Version (7, 3))
|
||||
return new Version (rv.Major, rv.Minor, 4);
|
||||
}
|
||||
// Since Version has wrong behavior:
|
||||
// new Version (10, 14) < new Version (10, 14, 0) => true
|
||||
// Force any unset revision to 0 instead of -1
|
||||
if (rv.Revision == -1)
|
||||
return new Version (rv.Major, rv.Minor, 0);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче