3 ms·
> The core API for both Windows and Macintosh is procedural C language. > The core API has to be a C language binding. > A disadvantage is that the core API i
by valleyer 12y ago
> The core API for both Windows and Macintosh is procedural C language.
> The core API has to be a C language binding.
> A disadvantage is that the core API is in Objective C which is unfamiliar to most developers, but a straight C API could be generated, as Apple have demonstrated with MacOS X.
The core API for the OS X UI is definitely not in C. There is only an Objective-C API, and it is not a shim over anything. (It uses the Quartz windowing system, but that does not provide things like button widgets, etc.) There is no C equivalent of NSView, for example.
- GuiA 12y ago> There is no C equivalent of NSView, for example objc_msgSend(objc_getClass("NSView"), sel_registerName("alloc")) ... :)
- valleyer 12y agoHaha, ok sure. :)
- pjmlp 12y agoSame thing on Windows. Since Windows XP many new APIs are exposed only via COM interfaces. Only masochists use COM from C.
- deleted 12y ago[deleted]