[Openmcl-devel] Currency Converter Example
brannode at gmail.com
Thu Jan 1 23:41:04 UTC 2009
Ok, that is good to know. Thanks for the quick response
With a little guidance I'd happily look at it now if that is deemed
wise given the current plans for Clozure and the bridge.
I am actually using it to acclimate myself to Clozure and its Cocoa
interface as I am hoping to port an Object-C++/Cocoa/OpenGL
application to CL over the next few months and it seems the most
promising route to take.
On Jan 1, 2009, at 6:28 PM, mikel evins wrote:
> On Jan 1, 2009, at 5:20 PM, B Rannode wrote:
>> I just did a fresh install of the 64bit Mac Clozure .dmg and am
>> having a few issues with the Currency Converter Cocoa example.
>> First, I cannot get it to build the application when strictly
>> following the instructions or using the attached example files at: http://trac.clozure.com/openmcl/wiki/AppleCurrencyConverterMakingaProject
>> When I use my own or the included files I get:
>>> ? (load "currency-converter")
>>>> Error: Reader error on #<BASIC-FILE-CHARACTER-INPUT-STREAM
>>> ("example_files/currency-converter.lisp"/4 ISO-8859-1)
>>> #x300040EC013D>, near position 94, within "(ns:ns-obj":
>>>> Reference to unknown package "NS".
>>>> While executing: SIGNAL-READER-ERROR, in process listener(1).
>> I have found that adding (require "COCOA") to the head of currency-
>> converter.lisp gets me beyond this step. Is that acceptable? Is my
>> installation flawed or is the tutorial out of date?
>> Next, when building the application:
>>> ? (require "build-application")
>>> ("builder-utilities" "build-application")
>>> ? (ccl::build-application :name "CurrencyConverter"
>>> :main-nib-name "CurrencyConverter"
>>> :nibfiles '(#P"CurrencyConverter.nib"))
>>> ;; Clozure terminates
>> I can run the Application bundle and it does convert, but I get a
>> console with the error message found at: http://paste.lisp.org/display/72922
>> Does anything stick out here to anyone? I have programmed in Obj-C+
>> + w/
>> Cocoa before but it is not immediately clear to me what needs
>> correction here.
>> Thanks for any insight into these issues.
> The Currency Converter example is indeed out of date. There has been
> something of a flurry of activity in CCL development in the past few
> months, and the Currency Converter code has not been kept up-to-date
> with the latest changes. Perhaps between us, we can work out what
> needs to be done to bring it up to date. We may want to wait to hear
> from other Clozure folks about whether right now is a good time to
> attack the example. They're doing some IDE work, and it might
> destabilize things further until it's complete.
More information about the Openmcl-devel