NALib icon indicating copy to clipboard operation
NALib copied to clipboard

Do at least parts of Objective-C with C

Open Manderby opened this issue 4 years ago • 1 comments

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 avatar Nov 04 '20 14:11 Manderby

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

Manderby avatar Oct 15 '23 18:10 Manderby