Skip to content
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

NSArray is missing some properties #1818

Closed
stuartmorgan-g opened this issue Dec 17, 2024 · 2 comments · Fixed by #1875
Closed

NSArray is missing some properties #1818

stuartmorgan-g opened this issue Dec 17, 2024 · 2 comments · Fixed by #1875
Labels
lang-objective_c Related to Objective C support package:objective_c

Comments

@stuartmorgan-g
Copy link

The generated NSArray in objective_c is missing at least firstObject and lastObject.

@liamappelbe
Copy link
Contributor

These are probably part of an undocumented category. A lot of the core APIs put methods on categories that the official documentation says are part of the core interface.

@liamappelbe liamappelbe added this to the ffigen 17.0.0 (2025 Q1) milestone Dec 18, 2024
@liamappelbe liamappelbe added the lang-objective_c Related to Objective C support label Dec 19, 2024
@liamappelbe
Copy link
Contributor

Yeah, these methods are part of NSExtendedArray.

I wonder if it'd make the package:objective_c bindings more readable if I inline all its category methods into the classes. I'd only do this for package:objective_c, because so many of these internal categories are undocumented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-objective_c Related to Objective C support package:objective_c
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants