Skip to content
TheRealKerni edited this page May 2, 2011 · 5 revisions

Version 2.x

  • Include Quincy.framework into your project
  • In your appDelegate.h include
    #import <Quincy/BWQuincyManager.h>"
  • In your appDelegate.h add the BWQuincyManagerDelegate protocol to your appDelegate
@interface DemoAppDelegate : NSObject <BWQuincyManagerDelegate> {}
  • In your appDelegate.m include the delegate function
- (void) showMainApplicationWindow
{
	[window makeFirstResponder: nil];
	[window makeKeyAndOrderFront: nil];
}
  • In your appDelegate applicationDidFinishLaunching function include (CRASH_REPORTER_URL points to your crash.php URL)
 [[BWQuincyManager sharedQuincyManager] setSubmissionURL:@"http://yourserver.com/crash_v200.php"];
 [[BWQuincyManager sharedQuincyManager] setDelegate:self];
  • In your NSWindow IBOutlet make sure the main window is hidden on startup, because the delegate method will activate it!
  • Done.
  • When testing the connection and a server side error appears after sending a crash log, the error code is printed in the console. Error code values are listed in BWQuincyManager.h

Version 1.x

  • Include CrashReporter.framework into your project
  • In your appDelegate.m include
    #import <CrashReportSender/CrashReportSender.h>
  • In your appDelegate.h add the CrashReportSenderDelegate protocol to your appDelegate
@interface CrashReporterDemoAppDelegate : NSObject <CrashReportSenderDelegate> {}
  • In your appDelegate.m include the delegate function
- (void) showMainApplicationWindow
{
	[window makeFirstResponder: nil];
	[window makeKeyAndOrderFront: nil];
}
  • In your appDelegate.m applicationDidFinishLaunching function include (CRASH_REPORTER_URL points to your crash.php URL)
    [[CrashReportSender sharedCrashReportSender] sendCrashReportToURL:CRASH_REPORTER_URL
                                                             delegate:self 
                                                          companyName:@"YourCompanyName"];
  • In your NSWindow IBOutlet make sure the main window is hidden on startup, because the delegate method will activate it!
  • Done.
  • When testing the connection and a server side error appears after sending a crash log, the error code is printed in the console. Error code values are listed in CrashReportSender.h
Clone this wiki locally