Skip to content

[XM] Fix dontlink by fixing some NSAccessibility binding mistakes#143

Merged
chamons merged 6 commits into
masterfrom
mac_dontlink_fixes
Jun 8, 2016
Merged

[XM] Fix dontlink by fixing some NSAccessibility binding mistakes#143
chamons merged 6 commits into
masterfrom
mac_dontlink_fixes

Conversation

@chamons

@chamons chamons commented Jun 7, 2016

Copy link
Copy Markdown
Contributor

This commit was not run against dontlink and sadness occurred: f535df6

This fixes things up.

I did not want to expose the previously named NSObjectAccessibilityExtensions on NSObject, even if that's what the header says, since that will really dirty up auto complete. Oh and:

BOOL oDoes = [o respondsToSelector:@selector(accessibilityHitTest:)]; // NSObject * o - NO
BOOL vDoes = [v respondsToSelector:@selector(accessibilityHitTest:)]; // NSView * v - YES

So I did a copy/paste. Which is terrible. Not sure a better way (open to suggestions).

Comment thread src/appkit.cs Outdated

[Field ("NSAccessibilityDisclosedByRowsAttribute")]
[Field ("NSAccessibilityDisclosedByRowAttribute")]
NSString DisclosedByRowsAttribute { get; }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Managed name should be fixed too (extra s)

@spouliot

spouliot commented Jun 7, 2016

Copy link
Copy Markdown
Contributor

IIRC you can just create an interface without any attribute and have it inlined (or I dreamt that feature).

@chamons

chamons commented Jun 7, 2016

Copy link
Copy Markdown
Contributor Author

@spouliot I could have sworn I tried that, but testing suggests I didn't. Let me rework...

@xamarin-release-manager

Copy link
Copy Markdown
Collaborator

Build success

@spouliot

spouliot commented Jun 7, 2016

Copy link
Copy Markdown
Contributor

LGTM if dontlink-mac is happy :)

@xamarin-release-manager

Copy link
Copy Markdown
Collaborator

Build success

1 similar comment
@monojenkins

Copy link
Copy Markdown
Contributor

Build success

@rolfbjarne

Copy link
Copy Markdown
Member

LGTM.

@chamons chamons merged commit 05bedce into master Jun 8, 2016
@chamons chamons deleted the mac_dontlink_fixes branch June 8, 2016 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants