Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

Graves Robber
($1.99)

African Adventure
($0.99)

iTazer
($0.99)

ArtStudio
($3.99)

Pigs Vs Wolves
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-07-2009, 04:18 PM   #3 (permalink)
PhysX
Registered Member
 
Join Date: Nov 2008
Posts: 57
Default

Right thanks, but something like this keeps going out of bounds for some reason. It makes no sense to me as to why...

Code:
NSString *hold=[page substringWithRange:NSMakeRange(page.length-200,page.length-150)]
Now I know it seems like it can go out of bounds from becoming negative, but it can't because I did a length check on 'page' and it came out of length 99,419. So it should just be substringing from values INSIDE that string, but it goes OOB...any idea why?

And this isn't what am actually using this for. For some reason the index to index+30 (which was around index of 66,000) was going OOB and I couldn't figure out why, so then I did this test just to see, and that's what I found. Numbers too large?

Thanks
PhysX is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Online Users: 292
16 members and 276 guests
armandjo, boolpae, damienbern, darth_steff, Eskema, Gismo, hrom, ipodishima, LemonMeringue, Leopard, maddams, oldmicah, RichardFu, shuvo1879, yahya.sadiiq, yunas
Most users ever online was 779, 05-11-2009 at 10:55 AM.
» Stats
Members: 23,721
Threads: 38,484
Posts: 169,070
Top Poster: smasher (2,541)
Welcome to our newest member, oldmicah
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:20 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.