on 4/17/08 4:56 PM, [EMAIL PROTECTED] purportedly said:

> A break; is not required, but it does cause the compound statement
> error to go away. Even with the break; inserted the other error still
> occurs if the comments are removed.
> 
> On Apr 17, 2008, at 6:50 PM, Robert Kukuchka wrote:
> 
>> you forgot the break;

If I understand your problem correctly, I have run across this numerous
times. For some reason, and I haven't yet found consistency, the compiler
will choke on declarations inside switch/case statements. Declare the local
variable outside of the statement, and I bet the error will go away.

HTH,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to