• 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
defined but not used error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

defined but not used error


  • Subject: defined but not used error
  • From: "John Love" <email@hidden>
  • Date: Mon, 26 May 2008 12:09:46 -0400

I have several Controllers in my .nib window; e.g., a StatusController which
displays messages in a NSTextField of the main window.  I want the
StatusController.h file to list the various possible messages; e.g.,

static NSString *openMsg = @"Open a new Spreadsheet";
static NSString *alreadyOpenMsg = @"This Spreadsheet already open";
static NSString *calculatingMsg = @"Calculating Spreadsheet ...";
static NSString *stillCalculatingMsg = @"Spreadsheet still calculating ...";
static NSString *isCalculatedMsg = @"Calculation finished.";
static NSString *stopCalculatingMsg = @"Calculation stopped before
finishing.";
static NSString *isSavedMsg = @"Spreadsheet saved.";
static NSString *notSavedMsg = @"Spreadsheet not saved.";
static NSString *saveStopsCalculationMsg = @"Saving will stop all
calculation.";
static NSString *cancelMsg = @"Saving will stop all calculation.";

However, the Cocoa compiler will present me with Warning: whatever defined
but not used.

I believe that I may need some basic C++ guidance, rather than Cocoa or
XCode help.

John Love
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: defined but not used error
      • From: Jens Alfke <email@hidden>
    • Re: defined but not used error
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: tables
  • Next by Date: Re: defined but not used error
  • Previous by thread: Re: Crashes related to garbage collection?
  • Next by thread: Re: defined but not used error
  • Index(es):
    • Date
    • Thread