(no subject)
(no subject)
- Subject: (no subject)
- From: "Brant Sears" <email@hidden>
- Date: Fri, 24 Feb 2006 17:17:50 -0500
Hi. I have a question about some code that is OK in gcc 3.3, but gcc 4 doesn't like.
for (NSCellAttribute ca = NSCellDisabled; ca <=NSCellAllowsMixedState; ++(int)ca) {
[myCell setCellAttribute:ca to:[modelCell cellAttribute:ca ]];
}
The warning that I'm getting states that "ca" is not really an lvalue. I don't understand this. Why isn't "ca" an lvalue in the above code fragment?
Is it just philosophically wrong to try to iterate through an enum like this?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden