Hi Jason,

2012/12/26 Jason Felice <jason.m.felice@gmail.com>
On Wed, Dec 26, 2012 at 10:25 AM, Mikael <mikael.rcv@gmail.com> wrote:
2012/12/26 Jason Felice <jason.m.felice@gmail.com>
I'm putting together an Objective-C bridge for gambit here:  https://github.com/eraserhd/gambit-objc.git  It's not complete, but the idea is to have a form which can call Objective-C methods using keyword-syntax from gambit.  Eventually, it'll support subclassing Objective-C classes.

Great!

Just to make it clear to someone who is not so introduced into Objective C such as what facilities for dynamic invocations and alike it has: What is the scope of your bridge, in a bit more detail?

Right now, it wraps Objective-C objects with closures that dynamically dispatch.  This means that you can do the following:

(import-classes (NSString))

(display (((NSString stringWithUTF8String: "Hello, ") stringByAppendingString: "World!") 'UTF8String))))

Return values (except for structures, unions and opaque pointers) are implemented, parameters except for objective-c objects, structures, unions, and opaque pointers are implemented.  I'm guessing it'll be complete enough to use (without subclassing) before the holidays are over.

Really neat!

Aha, hm, those parameter types are probably really needed to do something meaningful, at least objective-c objects and structures. What day now do you think they will become supported?
 
For instance, with your bridge, could a user dynamically create, access and invoke methods of object instances of NSApplication, NSWindow, NSView etc. and perhaps even overload methods in them?

Any neat facility for ObjC to Scheme callbacks?

Not yet, but it is planned.  Like later, after subclassing and stuff.  My goal is to be able to develop a whole iOS app in Scheme.

Super!
 
 -Jason

Brgds,
Mikael