Taking a few arguments from Objective-C to Common Lisp
ID
Created
Type
mocl Version
Dev OS
Target
Status
#26
by hiroki802 on 2013-11-15 (2705 days ago)
question
13.08
Mac OS X
iOS
closed
Comments
Hi Hiroki,
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).
Wes
- Wukix, 2705 days ago
Hi Wes,
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.
- Hiroki
- hiroki802, 2704 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!
Wes
- Wukix, 2704 days ago
Hi Wes,
It worked!
Thank you very much again!
- Hiroki