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

Do at least parts of Objective-C with C #19

Open
Manderby opened this issue Nov 4, 2020 · 1 comment
Open

Do at least parts of Objective-C with C #19

Manderby opened this issue Nov 4, 2020 · 1 comment
Labels
improvement Make existing functionality better

Comments

@Manderby
Copy link
Owner

Manderby commented Nov 4, 2020

There is the possiblilty to do things with plain C, see the code sniplet below which is an old comment (completely out of context, but this is just a hint where to start looking).

Idea is to move at least the NAPreferences out of the GUI code.

  // The ((id (*)(id, SEL)) part is a cast of the objc_msgSend function which
  // is requires since a later version of Objective-C
//  ( (id (*)(id, SEL)) objc_msgSend)(objc_getClass("NSApplication"), sel_registerName("sharedApplication"));
@Manderby
Copy link
Owner Author

For example allow the user to use a C function to call sharedApplication.

@Manderby Manderby added the improvement Make existing functionality better label Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Make existing functionality better
Projects
None yet
Development

No branches or pull requests

1 participant