Skip to content
Snippets Groups Projects
Commit c9898f1b authored by Nat Goodspeed's avatar Nat Goodspeed
Browse files

SL-821: Try again to override BugSplat Obj-C methods.

parent 6e790fc2
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,9 @@ ...@@ -27,6 +27,9 @@
#import "llappdelegate-objc.h" #import "llappdelegate-objc.h"
#if defined(LL_BUGSPLAT) #if defined(LL_BUGSPLAT)
@import BugsplatMac; @import BugsplatMac;
// derived from BugsplatMac's BugsplatTester/AppDelegate.m
@interface LLAppDelegate () <BugsplatStartupManagerDelegate>
@end
#endif #endif
#include "llwindowmacosx-objc.h" #include "llwindowmacosx-objc.h"
#include "llappviewermacosx-for-objc.h" #include "llappviewermacosx-for-objc.h"
...@@ -190,15 +193,14 @@ ...@@ -190,15 +193,14 @@
return true; return true;
} }
@end
#if defined(LL_BUGSPLAT) #if defined(LL_BUGSPLAT)
// per Geoff at BugSplat support - (NSString *)applicationLogForBugsplatStartupManager:(BugsplatStartupManager *)bugsplatStartupManager
@interface AppDelegate : NSObject <NSApplicationDelegate, BugsplatStartupManagerDelegate> {
@end // return NSStringFromSelector(_cmd);
infos("Reached applicationLogForBugsplatStartupManager");
@implementation AppDelegate return @"[contents of SecondLife.log]";
}
- (BugsplatAttachment *)attachmentForBugsplatStartupManager:(BugsplatStartupManager *)bugsplatStartupManager { - (BugsplatAttachment *)attachmentForBugsplatStartupManager:(BugsplatStartupManager *)bugsplatStartupManager {
std::string logfile = getLogFilePathname(); std::string logfile = getLogFilePathname();
...@@ -219,6 +221,6 @@ ...@@ -219,6 +221,6 @@
return attachment; return attachment;
} }
@end
#endif // LL_BUGSPLAT #endif // LL_BUGSPLAT
@end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment