Joy 2.0 Release Notes
As this is the first release of OS X Server, we have not had access to the full customer release to test our software. Throughout the history of OS X Server (Rhapsody) there have been numerous changes; due to our software being quite low-level this has in the past caused some problems.
The problems you encounter should be minor though. Feel free to go to our web site www.aaa-plus.com/joy to see new patches and upgrades as they appear.
There are the following known issues:
- Passing JavaScript functions as function pointers (JavaScript call back functions) is not yet supported.
- The const keyword is parsed, but ignored.
- Creating Objective-C root classes from JavaScript is possible, but not recommended. (All of the infrastructure normally inherited from NSObject is missing, which causes Joy to crash.)
- The +initialize method is not called automatically for Joy classes. Workaround: Call it by hand, and make sure the code of the initialize method is executed just once by using a static flag, like Apple recommends doing anyway.
- There is no support for calling Java other than using Apple's Java/Objective-C bridge. Support for directly messaging Java classes and objects from JavaScript will be made available as a free update.
- The "preprocessor" directives in JavaScript don't do line continuation (backslash-newline) correctly.
- Wide character literals (L"string") and the wchar_t data type are not supported.
- References to tagged structs and unions are resolved eagerly. This bloats precompiled header files and causes forward references to fail. (Joy will treat the forward reference like an empty struct.) Workaround: Often you can force Joy to use the correct struct definition by using an extra type cast.
- The Objective-C and C API is undocumented. If you need to interface with Joy at the Objective-C level, contact us.
Extra issues with YellowBox for Windows
- The __stdcall keyword is parsed, but ignored.
- The #pragma for special alignment of structs is ignored. This, together with the previous restriction, makes calling of Windows API from Joy somewhat unsafe.
- Forwarding of methods returning struct doesn't work.