The Cocotron is an open source project which aims to implement a cross-platform Objective-C API similar to that described by Apple Inc.'s Cocoa documentation. This includes the AppKit, Foundation, Objective-C runtime and support APIs such as CoreGraphics and CoreFoundation.

Cocotron Code

Now Available! Experienced iPhone, Cocoa, Objective-C developer.

Platform Specific Resources

There is a convention established by the old Apple YellowBox whereby the resource locating system in NSBundle would look for resources with the pattern name-platform.extension, where platform could be "winnt" or "windows".

Cocotron continues with this convention, implementing a general way to specify platform specific resources. So, for example you could have MainMenu-windows.nib for the Windows version and just MainMenu.nib for OSX. Or Localized-linux.strings for your Linux version. There is "windows", "linux" and "solaris" defined for the three platforms.