ExceptionUtils.h
changeset 30 2befbe36c746
parent 10 82a37ccf6b8c
     1.1 --- a/ExceptionUtils.h	Tue May 20 17:40:28 2008 -0700
     1.2 +++ b/ExceptionUtils.h	Tue May 12 14:38:30 2009 +0200
     1.3 @@ -7,15 +7,17 @@
     1.4  //  See BSD license at bottom of ExceptionUtils.m.
     1.5  //
     1.6  
     1.7 -#import <Cocoa/Cocoa.h>
     1.8 +#import <Foundation/Foundation.h>
     1.9  
    1.10  
    1.11 +#ifdef NSAppKitVersionNumber10_4 // only enable this in a project that uses AppKit
    1.12  /** Edit your Info.plist to make this your app's principal class,
    1.13      and most exceptions will be reported via a modal alert. 
    1.14      This includes exceptions caught by AppKit (i.e. uncaught ones from event handlers)
    1.15      and ones you report yourself via MYReportException and @catchAndReport. */
    1.16  @interface MYExceptionReportingApplication : NSApplication
    1.17  @end
    1.18 +#endif
    1.19  
    1.20  
    1.21  /** A useful macro to use in code where you absolutely cannot allow an exception to 
    1.22 @@ -39,3 +41,6 @@
    1.23  /** Returns a textual, human-readable backtrace of the point where the exception was thrown. */
    1.24  - (NSString*) my_callStack;
    1.25  @end
    1.26 +
    1.27 +
    1.28 +BOOL IsGDBAttached( void );