Hi,
I have been trying to figure out this error for the past 3 days. Simply don't understand what's wrong. I get this error with my Utilities.h class:
I posted this in more detail in stackoverflow but it was no help either. Please check it out : http://stackoverflow.com/questions/6590560/no-storage-class-may-be-specified-objective-c-error
Here's the .h file for Utilities:
I reduced the .m file to a mere:
Of course, I get warnings that the methods aren't implemented. But the error of "No type or storage..." still remains.
Thanks.
I have been trying to figure out this error for the past 3 days. Simply don't understand what's wrong. I get this error with my Utilities.h class:
Code:
error: no type or storage class may be specified here before 'interface'
I posted this in more detail in stackoverflow but it was no help either. Please check it out : http://stackoverflow.com/questions/6590560/no-storage-class-may-be-specified-objective-c-error
Here's the .h file for Utilities:
Code:
#import <Foundation/Foundation.h>
@interface Utilities : NSObject {
}
+ (NSString *)getDocumentsDirectory;
+ (void)showActivityIndicator;
+ (void)hideActivityIndicator;
+ (void)setUser:(NSString *)userName withPassword:(NSString *)password;
+ (NSString *)getUserName;
+ (NSString *)getPassword;
+ (long long)generateTicketNumber;
+ (BOOL)reachable;
+ (NSString *)printerAddress;
+ (NSInteger)port;
+ (void)setAddress:(NSString*)newAddress andPort:(NSInteger)newPort;
+ (void)showDataActivity;
@end
I reduced the .m file to a mere:
Code:
#import "Utilities.h"
@implementation Utilities
@end
Of course, I get warnings that the methods aren't implemented. But the error of "No type or storage..." still remains.
Thanks.
Last edited: