Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 12, 2009, 03:17 AM   #1
vidyareef
macrumors newbie
 
Join Date: Jan 2009
NSScanner scanUpToString

Hi !

I am working with NSScanner .

NSScanner *scanner = [NSScanner scannerWithString: myData];
[scanner scanUpToString:@"valid" intoString:&temp];

Now in case there is no "valid" string in the search the software crashes saying "Terminated due to Uncaught Exception".

Please help, send me suggestion.
Is there something like try-catch in obective-C?
vidyareef is offline   0 Reply With Quote
Old Jan 14, 2009, 12:12 PM   #2
jnic
macrumors 6502a
 
Join Date: Oct 2008
Location: Cambridge
http://developer.apple.com/documenta...section_1.html
jnic is offline   0 Reply With Quote
Old Jan 15, 2009, 04:48 AM   #3
vidyareef
Thread Starter
macrumors newbie
 
Join Date: Jan 2009
Handling Exceptions

Thank you!

the link you send me seems helpful.

Vidya.
vidyareef is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Forum Jump

All times are GMT -5. The time now is 06:24 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC