Taking a few arguments from Objective-C to Common Lisp
by hiroki802 on 2013-11-15 (1201 days ago)
Mac OS X
I reviewed the screenshots you sent me. I noticed there is a build error (with the red '!') around calling your story function in ViewController.m.
I am wondering if mocl needs to run again; possibly the generated files are now stale. Can you confirm that you have run the mocl command after making any changes to your app.lisp file? It must be run every time you make a change to app.lisp (although this can be automated under Xcode if you want).
- Wukix, 1201 days ago
I ran "mocl --ios . app.lisp" again, but the error doesn't disappear, but there are still three messages at "[_txtStory setText:story(<name>, <place>, <time>)];" as follows: "Expected identifier", "type name requires a specifier or qualifier", and "Expected expression."
I checked the connections inspector in the storyboard, and the links has no problems.
I'm not sure, but I'm wondering that there is a problem with the function "setText" to pass the arguments from objective-c to lisp.
It would be happy if you gave me an additional advice.
I'd appreciate your help.
- hiroki802, 1200 days ago
I looked again at the screenshots. In your call to story, the argument names are actually *empty*. Empty names appear as bubbles. These are merely suggestions from Xcode for names; they are not actually code. If you type again (or paste) completely "story(name, place, time)" you will see what I mean. Let me know if it works!
- Wukix, 1200 days ago
Thank you very much again!