• 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
Case label does not reduce to an integer constant . . .
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Case label does not reduce to an integer constant . . .


  • Subject: Case label does not reduce to an integer constant . . .
  • From: "Michael A. Crawford" <email@hidden>
  • Date: Mon, 08 Feb 2010 10:59:38 -0500

The following excerpts from my code show a constant definition that does not reduce to an integer constant in my case statement, but only in the release build of my iPhone project.  In the debug build it works just fine.  Any ideas?


static NSUInteger const kGPSSettingsRowIndex            = 0;

    switch ( indexPath.row )
    {
    case kGPSSettingsRowIndex:
        cell.textLabel.text = @"GPS Settings";
        break;

-Michael

 _______________________________________________
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: Case label does not reduce to an integer constant . . .
      • From: Jens Alfke <email@hidden>
    • Re: Case label does not reduce to an integer constant . . .
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: make connections without InterfaceBuilder
  • Next by Date: Re: Case label does not reduce to an integer constant . . .
  • Previous by thread: Re: make connections without InterfaceBuilder
  • Next by thread: Re: Case label does not reduce to an integer constant . . .
  • Index(es):
    • Date
    • Thread