Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-19-2009, 12:43 PM   #6 (permalink)
BrianSlick
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,971
BrianSlick has a spectacular aura about
Default

Ok, random observations:

1. Stop using instance variables directly. See the properties link in my signature for more information. Briefly, everything that you have that is _something should be self.something instead. I'm not kidding. Rewrite everything. Do it now. This is important regardless, but is doubly so in code that gets run a lot.

2. This:
Code:
outputText = [[NSString alloc] initWithString: [incoming substringWithRange:NSMakeRange(9,([incoming length] -16))]];
...doesn't need to be an alloc/init. It can be this:
Code:
outputText = [incoming substringWithRange:NSMakeRange(9,([incoming length] -16))];
3. Add another log:
Code:
NSLog(@"Start 2");
NSLog(@"incoming is: %@", incoming);
__________________
BriTer Ideas LLC - Code review, consulting, development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,278
Threads: 93,954
Posts: 402,304
Top Poster: BrianSlick (7,971)
Welcome to our newest member, DannyILee
Powered by vBadvanced CMPS v3.1.0

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