Manderby / NALib

General purpose C sourcecode collection
http://manderc.com/apps/nalib/index_en.php
The Unlicense
20 stars 5 forks source link

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

Open Manderby opened 3 years ago

Manderby commented 3 years ago

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 commented 11 months ago

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