• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
(no subject)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(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

  • Follow-Ups:
    • Re: (no subject)
      • From: Steve Checkoway <email@hidden>
  • Prev by Date: undefined symbol (operator delete(void*)) can't be a weak definition
  • Next by Date: Re: Debugging so slow it's unusable
  • Previous by thread: Re: Beginner Questions (was no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread