Objective-C Help - Ignacio Cabero Can't Figure It Out

  • Thread starter Thread starter ignaciocabero
  • Start date Start date
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 2K views
ignaciocabero
Messages
10
Reaction score
0
I've tried to figure out the problem all night, but I can't figure it out.
ImageUploadedByPhysics Forums1408135774.004256.jpg
Sorry if it's hard to see.
Thank you so much,
Ignacio Cabero.
 
Physics news on Phys.org
I've never used Objective-C, but even I can see there's something wrong with
Code:
         [[hero addChild:rightEye];
I'm pretty sure every "[" needs to be matched by a "]".
 
Thanks so much, that helped for the hero addChild, but there is still the three other ones that I need help with (the ones under the hero addChild
 
Welp, I actually fixed that problem by adding some brackets, but now this shows up.
ImageUploadedByPhysics Forums1408140714.136093.jpg
 
ignaciocabero said:
Thanks so much, that helped for the hero addChild, but there is still the three other ones that I need help with (the ones under the hero addChild

ignaciocabero said:
Welp, I actually fixed that problem by adding some brackets, but now this shows up. View attachment 72194
Some hints about errors.

  1. When one error occurs, often the following lines don't make sense to the compiler; fixing the first error may make the other errors go away.
  2. Sometimes the error isn't on the line identified by the compiler, but on the line before (e.g. something is missing from the line before, so the compiler can't make sense of the current line).
That second hint applies to the error you have now.
 
Thanks, but when I put a '( ' like it tells me to, it doesn't work.