defined but not used error
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