Loads a dll, checks for the public symbol extern "C" NSView *OYK_MACOSX_GetNSView(NSRect *); This function is called with the NSRect for the window the returned NSView is attached to a CocoaWindow. If the NSView implements a 'shutdown' method, that is called when the app terminates.
dtebbs/viewplayer
Trivial Cocoa application for Mac OS X that loads a dll and renders the NSView it exposes. Allows simple apps and games to be built without needing to create a full XCode Cocoa Application project.
Objective-C