Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

vidyareef

macrumors newbie
Original poster
Jan 11, 2009
8
0
Hi !

I am working with NSScanner .

NSScanner *scanner = [NSScanner scannerWithString: myData];
[scanner scanUpToString:mad:"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

macrumors newbie
Original poster
Jan 11, 2009
8
0
Handling Exceptions

Thank you!

the link you send me seems helpful.

Vidya. :apple:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.