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

how do I catch a NSRangeException?

I want my app to continue gracefully when the online server messes up. I tried to wrap the dangerous line in a @try block. Yet it is still crashing like so: the method: + (NSArray *)findAllFor:(NSObject *)ratable { NSString *ratingsPath =…
schwabsauce
  • 399
  • 5
  • 16
0
votes
1 answer

Mantle: Uncaught exception 'NSInvalidArgumentException' when parsing JSON

I am using the Mantle framework, and I seem to be having some problems with serializing some values into a MTLModel. This is the JSON I am receiving from the server: { "id":50, "name":"UserName", "email":"user@username.com", …
AndyRoid
  • 5,062
  • 8
  • 38
  • 73
0
votes
0 answers

getting -[__NSArrayI integerValue] exception

2015-07-13 23:56:13.659 ICBuses[41867:12770881] -[__NSArrayI intValue]: unrecognized selector sent to instance 0x7fddc8e00e30 2015-07-13 23:56:13.670 ICBuses[41867:12770881] * Terminating app due to uncaught exception 'NSInvalidArgumentException',…
0
votes
3 answers

Deleting a row in UITableView causes NSInternalInconsistencyException with computed property

I have a computed property as an instance variable: var favorites: [PFObject] get { return Array(ObjectManager.favorites) } } where ObjectManager.favorites is a Set static var on the ObjectManager class. Below are my table view…
Satre
  • 1,724
  • 2
  • 18
  • 22
0
votes
1 answer

uncaught exception of type NSException (connections seem fine) - Wenderlich tutorial

I'm a beginner working through Ray Wenderlich's Swift tutorial, Part 2. The final code for the lesson (and with which I'm receiving the error) is here: http://cdn5.raywenderlich.com/wp-content/uploads/2014/06/TipCalculator-Demo4.zip When I build the…
vk2015
  • 1,118
  • 1
  • 12
  • 16
0
votes
2 answers

iOS App Terminating with Uncaught NSException

I'm new to iOS programming, and I was working through an older tutorial. As I run my app, I keep getting an error. It says, "uncaught exception of type NSException." I'm very lost, the following is from the debugger. 2015-05-06 18:55:11.118…
Vimzy
  • 1,871
  • 8
  • 30
  • 56
0
votes
1 answer

NSException automatic breakpoint on debug

This is more a nuisance than a real problem, but when I run a library, using NSException in the control flow, on the debugger, the program repeatedly stops on the NSException line like there were a breakpoint to finally proceed regularly without…
Fabrizio Bartolomucci
  • 4,948
  • 8
  • 43
  • 75
0
votes
0 answers

Exception during populating tableView with string

I got data from JSON and put in to an array. I successfully set cell images with it, now I'm trying to set names. Apparently, some names are empty, or to be exactly, contain following: "name": null, (pasted from browser JSON viewing) So, when…
Evgeniy Kleban
  • 6,794
  • 13
  • 54
  • 107
0
votes
1 answer

terminating with uncaught exception of type NSException

i am new to IOS and Objective C. I have an issue that i am not able to solve. I'am working on a branch that should be working since i discarded all changes to a stable version. Can someone help me ? UPDATED LOG 2015-01-20 15:17:26.152…
C404
  • 243
  • 4
  • 14
0
votes
1 answer

ibc++abi.dylib: terminating with uncaught exception of type NSException (lldb)

when i run my app, i received this error : 2014-11-10 06:14:05.581 Yoga[4032:110484] user is registered 2014-11-10 06:14:30.552 Yoga[4032:110484] * Terminating app due to uncaught exception 'NSGenericException', reason: 'Push segues can only be used…
Billy
  • 1
  • 1
0
votes
0 answers

NSInvalidArgumentException with NSSet in Ordered CoreData Relationship

I have a CoreData project in which I have several objects witch several relationships. One of them is an ordered To-Many relationship from an object A to many objects B. I'm using the automatically configured obj-c classes which I use in my other…
Florian Pfisterer
  • 1,205
  • 12
  • 21
0
votes
2 answers

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 3 beyond bounds [0 .. 2]'

I haver already looked for the other similar post, but none has solved my problem. I get this error: *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 3 beyond bounds [0 .. 2]' I'm…
District-9
  • 13
  • 1
  • 3
0
votes
1 answer

How to use +[NSException raise:format:arguments:] without memory leak?

I am writing a custom assertion macro, when assertion failed, this function is called void _XLCAssertionFailedCritical(NSString *format, ...) { va_list ap; va_start(ap, format); // this suppose to throw exception [NSException…
Bryan Chen
  • 45,816
  • 18
  • 112
  • 143
0
votes
1 answer

terminating uncaught exception of type NSException

My game is constantly crashing after pressing a certain button after restarting the game. An animation is always running during the game in the ViewController I'm running the game on. Here is the crash log. Is there any way to detect how is this…
Joseph
  • 149
  • 1
  • 2
  • 7
0
votes
1 answer

Cannot load nib file, however file exists there

I wanted to create a new view controller, which would be home view controller. However, somehow I couldn't managed to find how this exception is thrown. Having tried restarting XCode, restarting computer, clean project, delete from simulator.…
Buğra Ekuklu
  • 3,049
  • 2
  • 17
  • 28