[Openmcl-devel] What's the minimal way to start using the ObjectiveC bridge?

Leo Liu sdl.web at gmail.com
Mon Apr 28 09:07:08 PDT 2014


On 2014-04-28 10:04 -0500, Paul Krueger wrote:
> It's not entirely clear to me what you are trying to do, but perhaps 
>
> (require :objc-support)
>
> is what you are looking for. This will make most objective-c
> functionality available to you in a command line listener. This will
> let you create and initialize objective-C objects, but there is no
> cocoa application started in such an environment unless you create one
> yourself and doing that correctly can be complex. You would also need
> to explicitly handle all memory management for any objective-c objects
> you create in this environment.

Thanks for this. My CCL 1.9 is from Mac Homebrew and I keep getting
segfaults:

Welcome to Clozure Common Lisp Version 1.9-r15759  (DarwinX8664)!
? (require :objc-support)
:OBJC-SUPPORT
("OBJC-PACKAGE" "SEQUENCE-UTILS" "NAME-TRANSLATION" "OBJC-CLOS" "OBJC-RUNTIME" "BRIDGE" "OBJC-SUPPORT")
? (objc:@selector #/addObject:forKey:)
Trace/BPT trap: 5

Leo




More information about the Openmcl-devel mailing list