1
vote
2answers
440 views

problem in Error handling method in iPhone sdk

I am using Error Handling Method globally in appDelegate method to caught exceptions. Code: //In appDelegate.m static void uncaughtExceptionHandler(NSException *exception) { printf("\n ===== ...
0
votes
2answers
57 views

iPhone - How to test allocated objects returned by each memory call?

When writing an app, you always have to write alloc/inits, get autoreleased datas returned by the framework classes, ... This may be 70% of the code, almost each single line of what you write... ...
3
votes
1answer
913 views

iOS UIWebView - trap exceptions loading invalid file format

I have a UIViewController containing a UIWebView which I am using to view various documents. Occasionally a document may attempt to be loaded which is not supported by the UIWebView (e.g. old Excel ...
3
votes
1answer
380 views

NSKeyedUnarchiver unarchiveObjectWithData crashes - No way to catch the exception?

I have the following code: @try { NSSet *set = [NSKeyedUnarchiver unarchiveObjectWithData:mData]; } @catch (NSException *exception) { // Use default data } At some point it seems that I ...
0
votes
1answer
99 views

How to Get More Information with UncaughtExceptionHandler

I am using Uncaught Exception Handler. Is there a way that I can use to get the stack traces when after rethrow? And gather more information about the back traces? Thanks!
0
votes
1answer
248 views

STAssertThrowsSpecificNamed and code coverage in XCode 4.2

I have one strange problem with XCode 4.2. Recently I decided to add code coverage support to my project which has a class named SomeClass with method someMethod which raises exception: @interface ...
0
votes
1answer
105 views

iOS RotatingWheelProject exception error

I'm trying to implement the RotatingWhellProject I've found on http://www.raywenderlich.com/9864/how-to-create-a-rotating-wheel-control-with-uikit I'm very new to iOS development and this is ...
2
votes
0answers
370 views

Example of how Objective-C's @try-@catch implementation is executed at runtime?

In Objective-C's low-level runtime headers (/usr/include/objc), there is an objc-exceptions.h file. It would seem this is how @try/@catch is implemented by the ObjC compiler. I am trying to invoke ...
1
vote
0answers
129 views

Ignore/Exclude specific Objective-C exceptions from the global exception breakpoint in Xcode?

Xcode has this neat feature to add an exception breakpoint. If I add one I can choose between "All", "Objective-C" and "C++" exceptions. However, I'm using a framework (Evernote iOS SDK) that heavily ...
0
votes
0answers
189 views

Objective C - Caught exception causes crash

I'm doing some Objective C tests. I'm raising a custom exception with this code: - (double)foo:(int)x{ if (x == 0){ [NSException raise:@"InvalidX" format:@"X can't be 0"]; } return ...