Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
My suggestion (which i coded up, though I felt it would be best for you to work through this on your own) would be a class with a single class method that takes an NSString * and returns an NSString * with the replacements made. This definitely would make it more versatile than having input and output going on in the various instance methods, etc.

-Lee
 
My suggestion (which i coded up, though I felt it would be best for you to work through this on your own) would be a class with a single class method that takes an NSString * and returns an NSString * with the replacements made. This definitely would make it more versatile than having input and output going on in the various instance methods, etc.

-Lee

Ok, don't show me yours, because I'd like to try this on my own, but there's one part I'm a little confused about. Would it perform the shortening within this method? Or would it take a tweet object and then return the shortened tweet?
 
There is no tweet. There is no shortened tweet. The class could be called TweetShortener, and could have a single shortenString: method. This is just one approach, there are others. You'd take an NSString * and return one.
-Lee
 
There is no tweet. There is no shortened tweet. The class could be called TweetShortener, and could have a single shortenString: method. This is just one approach, there are others. You'd take an NSString * and return one.
-Lee

Ok, I get what you're saying, focus on getting it to work. Sounds good. Working on it now...
 
What. The. Hell. It freakin' works, I don't have any idea what I changed or what I did, but It works now. Perfectly. I'm SOOOOOOOOOO sorry to those of you who put your time into this (especially Chown and Lee), I know that it now seems like wasted time. But it wasn't a COMPLETE waste, I learned about cleaning up my code, or "breaking it down", and cleaning it up in general. Thanks a lot, and again, I'm SOO sorry for wasting your time. :( :( :(
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.