[AppKit] Update bindings up to Xcode 27 Beta 3#25983
Conversation
Bind the two macOS-only AppKit APIs introduced in the Xcode 27 SDK: * NSSpellChecker.ignoreGrammarRange:inSentence:inSpellDocumentWithTag: * NSTextCheckingWaitForAllGrammarCheckingResultsKey (an NSTextCheckingOptionKey) Both are available on macOS 27.0 only (NSSpellChecker is [NoMacCatalyst]), so they carry [Mac (27, 0)] and inherit the type's Mac Catalyst exclusion. This resolves the two entries in tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.todo (deleting the now-empty file) and adds the cecil documentation known-failure entry for the new IgnoreGrammarRange method. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Updates the AppKit bindings to match two new macOS 27.0-only APIs introduced in the Xcode 27 Beta 3 SDK, keeping the generated API surface and validation suites (xtro/cecil) in sync.
Changes:
- Added
NSSpellChecker.IgnoreGrammarRange(NSRange, string, nint)with[Mac (27, 0)]. - Added the
NSTextCheckingWaitForAllGrammarCheckingResultsKeyAppKit field binding with[Mac (27, 0)]. - Removed the now-resolved xtro-sharpie todo entry and added the cecil documentation known-failure for the new method.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.todo | Deletes resolved xtro annotations now that the missing selector/field are bound. |
| tests/cecil-tests/Documentation.KnownFailures.txt | Adds the new NSSpellChecker.IgnoreGrammarRange method to documentation known-failures (consistent with existing NSSpellChecker method entries). |
| src/appkit.cs | Introduces the new macOS 27.0 AppKit bindings: selector ignoreGrammarRange:inSentence:inSpellDocumentWithTag: and field NSTextCheckingWaitForAllGrammarCheckingResultsKey. |
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #9c1a61e] Build passed (Detect API changes) ✅Pipeline on Agent |
✅ [PR Build #9c1a61e] Build passed (Build packages) ✅Pipeline on Agent |
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
✅ [PR Build #9c1a61e] Build passed (Build macOS tests) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🔥 [CI Build #9c1a61e] Test results 🔥Test results❌ Tests failed on VSTS: test results 1 tests crashed, 0 tests failed, 191 tests passed. Failures❌ Tests on macOS Golden Gate (27) tests [attempt 2]🔥 Failed catastrophically on VSTS: test results - mac_golden_gate (no summary found). Html Report (VSDrops) Download Successes✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |
Bind the two macOS-only AppKit APIs introduced in the Xcode 27 SDK:
Both are available on macOS 27.0 only (NSSpellChecker is [NoMacCatalyst]), so they carry [Mac (27, 0)] and inherit the type's Mac Catalyst exclusion.
This resolves the two entries in
tests/xtro-sharpie/api-annotations-dotnet/macOS-AppKit.todo (deleting the now-empty file) and adds the cecil documentation known-failure entry for the new IgnoreGrammarRange method.