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
3
votes
2 answers

Core Image NSException Crash, why/what?

In SpriteKit, using an Effect node, I apply a simple gradient to a simple rectangle. That seems to work fine, however adding it to the scene causes a NSException. PLEASE: What am I doing wrong? import SpriteKit import GameplayKit import…
Confused
  • 6,048
  • 6
  • 34
  • 75
3
votes
2 answers

TableView NSException

I am new to Swift , I am parsing my JSON by using ObjectMapper but I want data to be displayed in TableView. But I have a problem: libc++abi.dylib: terminating with uncaught exception of type NSException I get it after the method…
user7168364
3
votes
4 answers

Xcode - Terminating with uncaught exception of type NSException when a button is pressed

I'm new to app development and I'm following Apple's tutorial to learn. I've looked through a lot of questions asked about this type of error but none of them are helping me. In the tutorial, I'm stuck on the "Add Buttons to the View" section where…
AlphaFoxtrot
  • 514
  • 1
  • 6
  • 18
3
votes
0 answers

Any reason -[NSException raise] does not have noreturn attribute?

I am writing a custom assertion macro. It call this function when assertion failed. void _XLCAssertionFailedCritical(NSString *format, ...) __attribute__((noreturn)); void _XLCAssertionFailedCritical(NSString *format, ...) { va_list ap; …
Bryan Chen
  • 45,816
  • 18
  • 112
  • 143
3
votes
2 answers

Understanding NSBlockOperation

I'm getting into NSBlockOperation and I have some questions. Notably, the documentation for addExecutionBlock says: Discussion The specified block should not make any assumptions about its execution environment. Calling this method while the…
3
votes
2 answers

Catching NSException in main

The iOS application i took over has a way of handling NSExceptions differently than what i've seen before and wanted to know why it isn't working now. In the main.m file the old developer has this logic in it: int main(int argc, char *argv[]) { …
Rohan Panchal
  • 1,211
  • 1
  • 11
  • 28
3
votes
1 answer

NSInvalidArgument Exception - Random Objects Receiving didEnterBackground

Every time a user taps the home button while my app is active, I am getting the following exception. Slight caveat - The example exception below references NSCFString. However, the type of object that gets sent this message, and thus causes the…
natenash203
  • 699
  • 6
  • 15
3
votes
4 answers

"[__NSArrayM objectForKey:]: unrecognized selector" when trying to retrieve a string from Dictionary

I am trying to set text to my labels. Here is the code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { newsDataCell *cell = (newsDataCell*)[tableView…
nicky_1525
  • 929
  • 1
  • 10
  • 24
3
votes
0 answers

XCode 4.6 crash report stacktrace only

A customer send me this crash log, it only contains the stack trace. This stack trace is generated by a custom developed exception handler. Exception message: NSInvalidArgumentException Exception Reason: *** setObjectForKey: object cannot be nil…
Rob van der Veer
  • 1,148
  • 1
  • 7
  • 20
3
votes
0 answers

Unhandled NSException Line number?

I am using an exception handler in my AppDelegate. NSSetUncaughtExceptionHandler(&HandleExceptions); I can get the backtrace of the exception by using NSException's callStackSymbols It gives the following details. 0 CoreFoundation …
Ramaraj T
  • 5,184
  • 4
  • 35
  • 68
3
votes
5 answers

iPhone UI addSubview causing concurrency exception

This is really odd... I run my app, and while it is opening and the views are constructing I get: Collection was mutated while being enumerated. The code trace goes through the…
Eli
  • 4,874
  • 6
  • 41
  • 50
3
votes
1 answer

Getting Exception 'NSRangeException'

I am getting Exception for substringWithRange:range in below method. I am having textview with editing disabled. i am using textfield only for text selection. when i am selecting text for firs time no exception but when i press for second time it…
iosDev
  • 604
  • 3
  • 12
  • 28
2
votes
3 answers

Youtube video inside modal ViewController, strange crash 'UIViewControllerHierarchyInconsistency'

I have a problem with a strange crash on iPad 5.0. This crash only occurs on iOS 5.0 and with iPad with a modal ViewController and that ViewControler style set to anything but fullscreen, which works fine. I included a code example. If you run it…
Konrad77
  • 2,515
  • 1
  • 19
  • 36
2
votes
4 answers

UIDocument couldn't close again?

When a UIDocument is closed, can it close again? Even when it's documentState is UIDocumentStateNormal after reopened? Please help me. Thanks a lot! [document openWithCompletionHandler:^(BOOL success) { if (success) { [document…
fengyuxx
  • 58
  • 6
2
votes
3 answers

try and catch is not handling exception in iphone

i am using the following code to catch an error when ind.row is not a valid value or sometimes it becomes nil @try { if(ind.row<[[treeNode flattenElements] count]) { [self.mTableView scrollToRowAtIndexPath:ind…
sujith1406
  • 2,822
  • 6
  • 40
  • 60
1 2
3
17 18