-
Notifications
You must be signed in to change notification settings - Fork 514
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
[AppKit] Xcode 12.0 Beta 1 #9106
Conversation
src/AppKit/Enums.cs
Outdated
Small = 1, | ||
Mini = 2, | ||
[Mac (10,16)] | ||
Large = 3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: add a ,
so any future addition won't make the last value part of the diff
src/AppKit/Enums.cs
Outdated
Automatic, | ||
FullWidth, | ||
Inset, | ||
SourceList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: add a ,
so any future addition won't make the last value part of the diff
src/AppKit/Enums.cs
Outdated
Automatic, | ||
None, | ||
Line, | ||
Shadow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: add a ,
so any future addition won't make the last value part of the diff
src/AppKit/Enums.cs
Outdated
Expanded, | ||
Preference, | ||
Unified, | ||
UnifiedCompact |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: add a ,
so any future addition won't make the last value part of the diff
src/AppKit/Enums.cs
Outdated
SlideUp = 0x10, | ||
SlideDown = 0x20, | ||
SlideLeft = 0x30, | ||
SlideRight = 0x40 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: add a ,
so any future addition won't make the last value part of the diff
src/appkit.cs
Outdated
NSTextContentTypePassword, | ||
|
||
[Field ("NSTextContentTypeOneTimeCode")] | ||
NSTextContentTypeOneTimeCode, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
src/appkit.cs
Outdated
|
||
[Static] | ||
[Export ("tintConfigurationWithPreferredColor:")] | ||
NSTintConfiguration TintConfigurationWithPreferredColor (NSColor color); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no verb -> CreateWithPreferredColor
src/appkit.cs
Outdated
|
||
[Static] | ||
[Export ("tintConfigurationWithFixedColor:")] | ||
NSTintConfiguration TintConfigurationWithFixedColor (NSColor color); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no verb -> CreateWithFixedColor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some changes required
src/AppKit/Enums.cs
Outdated
Automatic, | ||
FullWidth, | ||
Inset, | ||
SourceList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SourceList | |
SourceList, |
src/AppKit/Enums.cs
Outdated
Automatic, | ||
None, | ||
Line, | ||
Shadow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shadow | |
Shadow, |
src/AppKit/Enums.cs
Outdated
Expanded, | ||
Preference, | ||
Unified, | ||
UnifiedCompact |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UnifiedCompact | |
UnifiedCompact, |
src/AppKit/Enums.cs
Outdated
SlideUp = 0x10, | ||
SlideDown = 0x20, | ||
SlideLeft = 0x30, | ||
SlideRight = 0x40 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SlideRight = 0x40 | |
SlideRight = 0x40, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after Sebastien suggestions :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor issues.
src/appkit.cs
Outdated
NSColor Knob { get; } | ||
|
||
[Static] | ||
[Export ("selectedKnobColor")] | ||
[Advice ("Use 'NSScroller' instead")] | ||
[Deprecated (PlatformName.MacOSX, 10, 16, message: "Use 'NSScroller' instead")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Deprecated (PlatformName.MacOSX, 10, 16, message: "Use 'NSScroller' instead")] | |
[Deprecated (PlatformName.MacOSX, 10, 16, message: "Use 'NSScroller' instead.")] |
src/appkit.cs
Outdated
[Static] | ||
[Export ("imageWithSystemSymbolName:accessibilityDescription:")] | ||
[return: NullAllowed] | ||
NSImage GetSystemSymbol (string symbolName, [NullAllowed] string description); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NSImage GetSystemSymbol (string symbolName, [NullAllowed] string description); | |
NSImage GetSystemSymbol (string symbolName, [NullAllowed] string accessibilityDescription); |
src/appkit.cs
Outdated
void ApplySnapshot (NSDiffableDataSourceSnapshot<NSObject, NSObject> snapshot, bool animatingDifferences); | ||
|
||
[Export ("applySnapshot:animatingDifferences:completion:")] | ||
void ApplySnapshot (NSDiffableDataSourceSnapshot<NSObject, NSObject> snapshot, bool animatingDifferences, [NullAllowed] Action completion); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+[Async]
?
|
||
[Flags, Mac (10,16)] | ||
[Native] | ||
public enum NSTableViewAnimationOptions : ulong |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
weird, it's not in the diff
it's used but not defined, maybe it's an older type ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Flags, NoiOS, Mac (0xa,0x7)]
10.7
https://github.com/xamarin/ObjectiveSharpie/issues/139
Co-authored-by: Rolf Bjarne Kvinge <[email protected]> Co-authored-by: Alex Soto <[email protected]>
Build failure |
Build failure 🔥 Build failed 🔥 |
Co-authored-by: Alex Soto <[email protected]>
src/appkit.cs
Outdated
[Mac (10,16)] | ||
[BaseType (typeof(NSObject))] | ||
[DisableDefaultCtor] | ||
interface NSTableViewDiffableDataSource : NSTableViewDataSource |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that does not match the native side
@interface NSTableViewDiffableDataSource<SectionIdentifierType,ItemIdentifierType> : NSObject<NSTableViewDataSource>
and that's a similar issue to what we had in Foundation (and UIKit) that requires generator changes (iirc from last year)
src/appkit.cs
Outdated
IntPtr Constructor (NSTableView tableView, NSTableViewDiffableDataSourceCellProvider cellProvider); | ||
|
||
[Export ("snapshot")] | ||
NSDiffableDataSourceSnapshot<NSObject, NSObject> Snapshot (); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NSObject
are wrong since it should be identical to the generic used on the type itself
Build failure Test results1 tests failed, 92 tests passed.Failed tests
|
[Static] | ||
[Export ("imageWithSystemSymbolName:accessibilityDescription:")] | ||
[return: NullAllowed] | ||
NSImage GetSystemSymbol (string symbolName, [NullAllowed] string accessibilityDescription); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GetSystemSymbolImage
since we're returning an NSImage
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are inside NSImage already so it's NSImage.GetSystemSymbol()
Co-authored-by: Whitney Schmidt <[email protected]>
Build failure ✅ Build succeeded |
Build failure Test results1 tests failed, 92 tests passed.Failed tests
|
we don't add availability when older than our minimum supported version |
I remember when 10.7 was supported... Fixing. |
Build success |
No description provided.