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

Ability to define classes using native syntax #12

Open
maleadt opened this issue Mar 8, 2023 · 2 comments
Open

Ability to define classes using native syntax #12

maleadt opened this issue Mar 8, 2023 · 2 comments

Comments

@maleadt
Copy link
Member

maleadt commented Mar 8, 2023

Was removed as part of #11 (due to bitrot), so if anybody is interested in bringing this back, look at https://github.com/JuliaInterop/ObjectiveC.jl/tree/22118319da1fb7601d2a3ecefb671ffbb5e57012

@maleadt
Copy link
Member Author

maleadt commented Mar 8, 2023

-@class

  • uses old type definition syntax
  • also needs syntax to specify which protocols are conformed too -- this is probably the most import use case for Julia users (e.g. define delegates)
  • need a way to call methods in super (objc_sendSuper) -- needed in init usually
  • ivars? if we only care about protocol support, we can elide.

Originally posted by @habemus-papadum in #11 (comment)

@habemus-papadum
Copy link

  • (another nice to have) Objective-C Categories (add methods to existing classes -- a useful pattern in objective-c land)

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

No branches or pull requests

2 participants