Skip to content

Conversation

gcasa
Copy link
Member

@gcasa gcasa commented Sep 12, 2025

No description provided.

@gcasa gcasa requested a review from fredkiefer as a code owner September 12, 2025 18:58
@gcasa gcasa marked this pull request as draft September 12, 2025 19:19
@gcasa gcasa requested a review from rfm September 12, 2025 19:19
@gcasa gcasa marked this pull request as ready for review September 21, 2025 23:06
@gcasa gcasa requested a review from Copilot September 21, 2025 23:06
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Implements core NSAccessibility classes and C helpers to make accessibility elements, custom rotors, and custom actions functional under manual retain/release.

  • Add concrete initializers, accessors, and simple role description to NSAccessibilityElement
  • Implement NSAccessibilityCustomRotor and ItemResult, plus NSAccessibilityCustomAction (with block support, perform logic, and factories)
  • Provide basic NSAccessibility* C helpers for notifications and role/action descriptions

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
Source/NSAccessibilityElement.m Implements element initializers, accessors, dealloc, and a simple role description.
Source/NSAccessibilityCustomRotor.m Fills in rotor and item result initializers, accessors, and dealloc.
Source/NSAccessibilityCustomAction.m Adds safe block retention/release, perform logic, convenience factories, and description.
Source/NSAccessibility.m Adds basic implementations for posting notifications and role/action description utilities.
Headers/AppKit/NSAccessibilityElement.h Public API and ivars for NSAccessibilityElement, including initializers and accessors.
Headers/AppKit/NSAccessibilityCustomRotor.h Public ivars for rotor and item result classes.
Headers/AppKit/NSAccessibilityCustomAction.h Declares new factory methods and perform method for custom actions.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 73 to 76
- (void) setAccessibilityLabel: (NSString *)label
{
ASSIGN(_accessibilityLabel, label);
}
Copy link
Preview

Copilot AI Sep 21, 2025

Choose a reason for hiding this comment

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

[nitpick] Setters for string attributes should copy (not just retain) to avoid surprises with mutable strings. Replace ASSIGN with ASSIGNCOPY here, and likewise in setAccessibilityIdentifier, setAccessibilityRole, and setAccessibilitySubrole.

Copilot uses AI. Check for mistakes.

@gcasa
Copy link
Member Author

gcasa commented Sep 24, 2025

I think this PR is ready as well, @fredkiefer / @rfm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant