Revision: 13132
          http://bibdesk.svn.sourceforge.net/bibdesk/?rev=13132&view=rev
Author:   amaxwell
Date:     2008-04-09 21:38:11 -0700 (Wed, 09 Apr 2008)

Log Message:
-----------
Attempt to work around Omni's swallowing of backtraces in their
goofy exception handling.

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.h
    trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.m

Modified: trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.h
===================================================================
--- trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.h        
2008-04-09 21:48:15 UTC (rev 13131)
+++ trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.h        
2008-04-10 04:38:11 UTC (rev 13132)
@@ -63,8 +63,8 @@
 
 // Application Support directory
 - (NSArray *)supportDirectoriesInDomain:(NSSearchPathDomainMask)domains;
-- (NSArray 
*)readableSupportDirectoriesInDomain:(NSSearchPathDomainMask)domains 
withComponents:(NSString *)subdir, ...;
-- (NSString *)writableSupportDirectoryInDomain:(NSSearchPathDomainMask)domains 
withComponents:(NSString *)subdir, ...;
+- (NSArray 
*)readableSupportDirectoriesInDomain:(NSSearchPathDomainMask)domains 
withComponents:(NSString *)subdir, ...  NS_REQUIRES_NIL_TERMINATION;
+- (NSString *)writableSupportDirectoryInDomain:(NSSearchPathDomainMask)domains 
withComponents:(NSString *)subdir, ...  NS_REQUIRES_NIL_TERMINATION;
 
 @end
 

Modified: trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.m
===================================================================
--- trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.m        
2008-04-09 21:48:15 UTC (rev 13131)
+++ trunk/bibdesk_vendorsrc/OmniGroup/OmniAppKit/OAApplication.m        
2008-04-10 04:38:11 UTC (rev 13132)
@@ -337,7 +337,7 @@
         // Already handling an exception!
         NSLog(@"Ignoring exception raised while displaying previous exception: 
%@", anException);
         if ([anException 
respondsToSelector:@selector(callStackReturnAddresses)])
-            NSLog(@"%@", [anException callStackReturnAddresses]);
+            NSLog(@"%@", [[[OFController sharedController] 
copySymbolicBacktraceForNumericBacktrace:[[anException 
callStackReturnAddresses] componentsJoinedByString:@"  "]] autorelease]);
         return;
     }
 
@@ -348,7 +348,7 @@
         } else {
             NSLog(@"%@", [anException reason]);
             if ([anException 
respondsToSelector:@selector(callStackReturnAddresses)])
-                NSLog(@"%@", [anException callStackReturnAddresses]);
+                NSLog(@"%@", [[[OFController sharedController] 
copySymbolicBacktraceForNumericBacktrace:[[anException 
callStackReturnAddresses] componentsJoinedByString:@"  "]] autorelease]);
             
             // Do NOT use NSRunAlertPanel.  If another exception happens while 
NSRunAlertPanel is going, the alert will be removed from the screen and the 
user will not be able to report the original exception!
             // NSGetAlertPanel will not have a default button if we pass nil.


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to