is there something with the switch statement
is there something with the switch statement
- Subject: is there something with the switch statement
- From: Theodore Petrosky <email@hidden>
- Date: Sun, 8 Feb 2004 07:09:12 -0800 (PST)
bare with me...
I have an action method that adds a row to a table.
everything works fine. I decided to change the
interface and break it into views that I show and hide
depending on the users requests. So I created a second
button on the second view and using tags I was going
to branch in my above action method.
my idea is to duplicate the first row of the table.
the user could set it up and then dup it so i put
LFDict *oldLFRow = [largeLFArray objectAtIndex:0];
LFDict *newLFRow = [[LFDict alloc] init];
now here is my problem . if those two lines appear
after the 'case' statement, I get compile errors.
so...
switch([sender selectedTag]){
case 0:
LFDict *oldLFRow = [largeLFArray objectAtIndex:0];
LFDict *newLFRow = [[LFDict alloc] init];
etc....
}
does not work with compile errors 'error: parse error
before '*' token'.
so on a lark I added a table reload after the case
statement and it works.
Is this my error?
Ted
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
_______________________________________________
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.