“unrecognized selector ” error sometimes when -[SystemController handleMessage:]
-
- Posts: 10
- Joined: 03 Aug 2017, 04:53
Re: “unrecognized selector ” error sometimes when -[SystemController handleMessage:]
it is my fault to spell a wrong "handleResponse",just ignore it.
Re: “unrecognized selector ” error sometimes when -[SystemController handleMessage:]
Rob wrote:Lapo wrote:I have no idea what that refers to... is it a method in your code?
I'm not OP. I was just pointing out a possible cause for the problem.
Yeah, sorry
-
- Posts: 10
- Joined: 03 Aug 2017, 04:53
Re: “unrecognized selector ” error sometimes when -[SystemController handleMessage:]
Hi, lapo. i have found a easy to avoid this crash. By using the "Extension" feature of Objective-c language, i can add an function named “- (void)fnCallExtension:(id)sender” in a “SystemController+Extension.h” i create. i will seek more better way to solve this.but it will be ok ,i think.
Here the code i use:
================Header file :[SystemController+Extension.h]==============================
#import <Foundation/Foundation.h>
#include <SFS2XAPIIOS/SystemController.h>
@interface SystemController (Extension)
@end
==================implementation file : [SystemController+Extension.m]======================
#import "SystemController+Extension.h"
@implementation SystemController (Extension)
- (void)fnCallExtension:(id)sender {
//#ifdef DEBUG
// NSString *strError = [NSString stringWithFormat:@"Crash Log:%@", [NSThread callStackSymbols]];
// NSAssert(NO, strError);
//#endif
}
@end
-----------------------------------------
Thanks for your attention these days.
Best Regards.
Here the code i use:
================Header file :[SystemController+Extension.h]==============================
#import <Foundation/Foundation.h>
#include <SFS2XAPIIOS/SystemController.h>
@interface SystemController (Extension)
@end
==================implementation file : [SystemController+Extension.m]======================
#import "SystemController+Extension.h"
@implementation SystemController (Extension)
- (void)fnCallExtension:(id)sender {
//#ifdef DEBUG
// NSString *strError = [NSString stringWithFormat:@"Crash Log:%@", [NSThread callStackSymbols]];
// NSAssert(NO, strError);
//#endif
}
@end
-----------------------------------------
Thanks for your attention these days.
Best Regards.
Re: “unrecognized selector ” error sometimes when -[SystemController handleMessage:]
Thanks for the update.
Yes this should work as a workaround.
We should be able to improve the exception handling for this specific issue in the next release. It remains a mystery how it gets triggered, however. If you find a way to reproduce it let us know.
Thanks
Yes this should work as a workaround.
We should be able to improve the exception handling for this specific issue in the next release. It remains a mystery how it gets triggered, however. If you find a way to reproduce it let us know.
Thanks
Return to “SFS2X iPhone / iPad / OSX API”
Who is online
Users browsing this forum: No registered users and 20 guests