Questions tagged [nsexception]

NSException is a Mac Developer Library class used to implement exception handling and contains information about an exception.

NSException is a Mac Developer Library class used to implement exception handling and contains information about an exception.

It is available in OS X v10.0 and later and is declared in NSException.h

259 questions
0
votes
2 answers

Simple voice recording app "uncaught NSException"

I am attepting to build this small project for the iPhone, but when I deploy it on the iOS simulator I get the error "libc++abi.dylib: terminating with uncaught exception of type NSException". The code is pretty straightforward, here…
0
votes
1 answer

Catching Exceptions in iOS application

I am developing an application and I have to submit an error report, I have to save all errors I face in database or word file, etc. Exceptions have to be saved in order to know what kind of exceptions we are facing and to fix them later on. I have…
etab
  • 199
  • 1
  • 14
0
votes
2 answers

Application crash after updated to IOS7

I have updated my app to IOS7 and now I have very strange issue. When I start app it start to do what it suppose to do and after 3-5 minutes app stops to work. But not completely. It stops to send notifications, track location etc. And if I try to…
1110
  • 7,829
  • 55
  • 176
  • 334
0
votes
0 answers

@catch block does not catch exceptions in debug mode

With further to my question and it's solution mentioned here: https://stackoverflow.com/a/19153387/260665 the only way to solve the problem was to implement @try-@catch block and gracefully handle the exceptions by clearing off the results of the…
Raj Pawan Gumdal
  • 7,390
  • 10
  • 60
  • 92
0
votes
1 answer

@throws or NSError which one is appropriate in for objective C api kind of methods

Which one is the most preferred objective C exception handling ? NSError pointer which give the pointer with message details within it or @throws which forces the caller to handle exception and show some graceful message. Thanks. and alos please let…
thndrkiss
  • 4,515
  • 8
  • 57
  • 96
0
votes
0 answers

setValue:forUndefinedKey: issue that makes no sense UIActivityIndicatorView

In ViewController.m I am allocating a class like so: myClass = [[MyClass alloc]init]; but when I set a breakpoint in that class it's throwing an exception before it even hits ViewDidLoad of: [ setValue:forUndefinedKey:]: this…
Matt
  • 2,920
  • 6
  • 23
  • 33
0
votes
1 answer

iOS stacktrace missing myapp function in release build but shows in debug build

I was having trouble symbolicating some code in distribution build and finally created a simple project which has a button that basically causes a crash by accessing an objectAtIndex in an array that doesn't exist. In release (or distribution)…
Truth
  • 13
  • 5
0
votes
2 answers

How to deal with NSError in an iphone application?

Is there a good way to deal with NSError in ios development?I was going trough some online references and i found that most of them were using [NSApp presentError] to present the error?? This is definitely not possible in ios as there is nothing…
Mr.Anonymous
  • 820
  • 2
  • 13
  • 22
0
votes
1 answer

How to catch a database exception in ios?

I have searched a lot on the internet on catching an sqlite exception.But all I could come across was this general exception @catch (NSException *exception) { } What type of exception can I use for sqlite exception handling?
zzzzz
  • 1,209
  • 2
  • 18
  • 45
0
votes
1 answer

*** Terminating app due to uncaught exception 'NSInvalidArgumentException' unrecognized selector sent to instance

So Im using the asyncsocket library https://github.com/caydenliew/AsyncSocket. and I have a button that sends a string to a server when pressed. No errors are present, but I get the following exception: *** Terminating app due to uncaught exception…
fozbstuios
  • 373
  • 4
  • 8
  • 17
0
votes
1 answer

Unit Tests, STAssertThrows and NSExceptions

I'm new with Unit Test and I've got question about it. In my source code I have subclassed NSMutableArray. NSMutableArray must have implemented primitive NSMutableArray and NSArray methods. These methods in some case throws NSExceptions like…
Tomasz Szulc
  • 4,217
  • 4
  • 43
  • 79
0
votes
1 answer

What does the number pair mean in the output of NSException?

Sorry, I'm afraid this question is fairly ambiguous but I don't know the correct terminology to use. Maybe someone could edit it? I'm trying to fathom what this problem is 2012-12-23 09:53:36.827 myApp[10768:303] *** -[__NSArrayM objectAtIndex:]:…
neutrino
  • 341
  • 1
  • 3
  • 19
0
votes
1 answer

S3 uploader throwing exception while trying to upload huge files

I was trying to upload a huge file (8GB) using Amazon sdk for MAC (though they dnt have an sdk for MAC, I have modified the IOS sdk source code by removing the UIKit references and recompiled for MAC). It's actually working for files, maybe upto…
Advaith
  • 1,087
  • 3
  • 12
  • 31
0
votes
3 answers

Getting an exception from CGRectMake when running on iOS device (but not simulator)

I have an exception happening that I just can't figure out. I have this bit of code here: newControllers = [[NSMutableArray alloc] initWithCapacity:9]; // Only allocate what we need // Ok, add the new thumb UIs for (int i = 0; i < 3; ++i)…
Jason
  • 5,277
  • 4
  • 17
  • 12
0
votes
1 answer

open({modal:true}) throwing NSException

I am receiving a NSException when I click on my rightNavButton to try and open up a new window. However when I do this it suddenly quits the emulator and gives me a NSException error. I have done research on the subject and have not come across the…
Robert Zeno
  • 67
  • 1
  • 14