lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Ahem, no, please do *not* force us to link against the AppKit. Many applications are Cocoa-free and want to stay that way.

IMHO you should instead look into something which is a little bit more low-level, relying only on Core Foundation so it's accessible from both Carbon and Cocoa applications. You might want to start from:

http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachORuntime/Overview/chapter_2_section_4.html

In particular, the low-level APIs seem well suited for something like loadlib.

Just my 0.02 Euros,
Dario

----- Original Message ----- From: "Roberto Ierusalimschy" <roberto@inf.puc-rio.br>
To: "Lua discussion list" <lua-l@lua.org>
Sent: Monday, December 20, 2004 3:05 PM
Subject: loadlib for Mac OS X


After all, is there a consensus about the "correct"
way for Lua to load dynamic libraries in Mac OS X?
NSAddImage? NSCreateObjectFileImageFromFile?

-- Roberto