GDCrashReporter Class Reference

The GDCrashReporter is a controller that implements post-trauma-pre-usage crash reporting. More...

#import <GDCrashReporter.h>

List of all members.

Public Member Functions

(id) - initWithUserDefaultsPrefix:
 [Designated initializer] Inititlize this crash reporter with a user defaults prefix.
(NSString *) - applicationName
 [internal] The application name.
(void) - addCrashSearchPath:
 Add a crash report (core dump) file search path.
(IBAction) - oncancel:
 IBAction for a cancel button.
(void) - forceCrash
 Force crash any app that is using this crash reporter (for testing).
(void) - initSearchPaths
 [internal] Initializes default search paths.
(void) - initUI
 [internal] Initializes UI components from the nib.
(void) - performCrashReporterDidFinishOnDelegate
 [internal];
(void) - performCrashReporterDidSendOnDelegate
 [internal];
(void) - performCrashReporterDidCancelOnDelegate
 [internal];
(IBAction) - onsend:
 IBAction for a send button.
(void) - searchForCrashReports
 [internal] Searches for crash reports and finds the latest one.
(void) - _deleteCrashReport
 [internal] Used to delete a crash report.
(BOOL) - show
 Shows the crash report nib.

Protected Attributes

id< GDCrashReporterDelegatedelegate
 Delegate for crash reporter hooks.
NSStringplaceHolderComm
 Placeholder string for the comments field.
NSStringcrashFile
 The crash file that is being reported.
NSTask * task
 Task used when sending the crash report.
NSMutableArray * searchPaths
 Crash file search paths - there are some defaults used.
IBOutlet NSWindow * window
 Nib reference to the window.
IBOutlet NSButton * send
 Nib outlet to the send button.
IBOutlet NSButton * cancel
 Nib outlet to the cancel button.
IBOutlet NSTextView * comments
 Nib outlet to the comments field.
IBOutlet NSTextView * details
 Nib outlet to the details field.
IBOutlet NSTextField * message
 Nib outlet to the message field.

Properties

id delegate
 The delegate for this crash reporter.
NSStringuserDefaultsPrefix
 The user defaults prefix to use which records information about the last crash report that was reported.
NSStringpythonBinLocation
 Python binary location used if the crash reporter is sending the crash through email.
NSStringpythonSendFileScriptLocation
 Python send file script location.
BOOL hasCrash
 Whether or not a crash is available.
NSStringwindowTitle
 The crash reporter window title.
NSStringcrashMessage
 The crash message title.
NSStringcompanyName
 The company name for your software.
BOOL deleteCrashReport
 Whether or not the crash reporter should delete the crash report after it's been reported.

Detailed Description

The GDCrashReporter is a controller that implements post-trauma-pre-usage crash reporting.


Property Documentation

- (NSString *) companyName [read, write, copy]

The company name for your software.

The company name to display (if crashMessage is not used).

- (NSString *) crashMessage [read, write, copy]

The crash message title.

The crash message to display in the window.

- (BOOL) deleteCrashReport [read, write, assign]

Whether or not the crash reporter should delete the crash report after it's been reported.

Whether or not the crash report should be deleted after it's reported.

- (BOOL) hasCrash [read, assign]

Whether or not a crash is available.

Whether or not a crash report is available.

- (NSString *) pythonBinLocation [read, write, copy]

Python binary location used if the crash reporter is sending the crash through email.

The python binary location (default is /usr/bin/python).

- (NSString *) pythonSendFileScriptLocation [read, write, copy]

Python send file script location.

The python sendcrashreport.pyc file location.

This file is searched for in the GDKit.framework bundle.

Default is taken from getting a resource path from NSBundle.

- (NSString *) userDefaultsPrefix [read, write, copy]

The user defaults prefix to use which records information about the last crash report that was reported.

A user defaults key prefix.

This is used when saving the last crash found so that it's only reported once.

- (NSString *) windowTitle [read, write, copy]

The crash reporter window title.

The window title to use for the nib.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Properties Defines