Problem Solved when...
I've noticed that the author of this book neglects to inform us of some minor details when instructing us to do things. For this particular coding, if you follow the author's instruction to Command + R to run the app while in the View Window you will only see the Text Field and the OK button. Clicking the OK button does not cause an alert.
However, if you click Build and Run (or Command + R) in the XCode Project Window or Editor Window then it will work.
I've tried three of these codes by the author and half of one worked. The other two and a half gave me errors up the wazzoo. The half worked only by me coming up to these forums and reading from someone that you have to Build and Run from the other interface.
I've never had a programming book that gave me so much trouble with just a simple "Hello World" program.
Half of the code snippets don't come with instructions clearly stating which file it should be written to.
Now I'm stuck on the UsingViews app where I get an error: Request for member 'tag' in something not a structure or union.
I've double checked the code line by line and have also copied "working" codes from the forum but still get the same error.
Last edited by VanDamme; March 26th, 2011 at 02:04 AM..
|