Oddness with PB
Oddness with PB
- Subject: Oddness with PB
- From: Ben Mackin <email@hidden>
- Date: Sat, 01 Feb 2003 16:35:48 -0800
I am not exactly sure what happened, but last night I was compiling my app
and all was going fine. I compiled it, and built my app. Ran it for a few
tests and then quit. When I woke up this morning, I made a few changes to
the code, but when I went to compile, I got tons of errors. Not sure why, so
I deleted the new lines, but I still got tons of errors.
Then I noticed that all the errors were at variable declarations in the
middle of a function. For example:
- (IBAction)myThingToDo:(id)sender
{
NSString *myString;
myString = [[NSString alloc] initWithContentsOfFile:[@"/thisFile.txt"];
int i = 0;
...
}
Would cause PB to report an error (parse error before `int'). As soon as I
moved the variable declaration up to the top of the function, it compiled
that part fine. Rather than move all my code around, I wonder how I can fix
things so it compiles "as is".
Thanks,
Ben
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.