That makes no sense to me. Maybe someone here can explain why this is happening.
I have an NSMutableString that I use at the top of my iPhone application and then add it later. This results in a SIGABRT that does not match me. Here is the code:
Header File (Simplified):
@interface MyAppDelegate : NSObject <UIApplicationDelegate> {
UIWindow *window;
NSMutableString *locationErrorMessage;
}
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, copy) NSMutableString *locationErrorMessage;
@end
And the relevant parts of Main:
@implementation MyAppDelegate
@synthesize window;
@synthesize locationErrorMessage;
- (void)applicationDidFinishLaunching:(UIApplication *)application {
self.locationErrorMessage = [[NSMutableString alloc] init];
}
- (void)anotherFunction {
[self.locationErrorMessage appendString: @"Blah Blah Blah"];
}
All this seems simple enough. What am I missing?
Axeva source
share