From: Chris T. <ch...@m-...> - 2003-12-02 16:44:55
|
On Dec 2, 2003, at 5:12 AM, Jim Menard wrote: > Dan, > >> At this point I was incredibly frustrated and completely baffled. I >> went over every single word of code and every aspect of my nib files. >> They were all solid. As a last resort I finally decided to try >> something i figured wouldn't work. I went into one of the example >> NSObject subclass files and copied the "< OSX::NSObject" part (even >> though it was the exact same in my document). I deleted that part >> from my file and pasted the section from the other. To my amazement, >> the error disappeared. >> >> In it's place, were several more extremely odd errors. For instance >> it claimed that my "end" tags were void expressions. I checked and I >> had the right number of tags. I got so fed up with trying to get rid >> of the errors, that I decided to start over completely from scratch. > > Could this be a character encoding issue? If the file isn't straight > ASCII mightn't that confuse the Ruby parser? Yes, or it could be line endings as well. The Ruby interpreter does not like CR or CR/LF. Bit me at least once. PB/Xcode defaults to MacRoman and LF or UTF-8 and LF, so it's not likely, but you never know. Chris -- Essential reading for Americans: http://www.economist.com/world/na/displayStory.cfm?story_id=2246429 |