Search
Recommended for You

Entries tagged with “code”

If you’ve used the iPhone or iPod touch for any time, you’ve likely seen the small red badges that appear over applications on the home screen. These might indicate the number of missed phone calls or unread emails that accumulated...... read more

– Erica Sadun

Progress bars allow end-users to anticipate wait times. They present bars that fill from left to right. These bars indicate the degree to which a task has finished. Progress bars work best for long waits where providing state feedback allows...... read more

– Erica Sadun

The other day, I posted on TUAW about finding Apple's new AppStore Protocol in Apple's public storeBag.xml file. Today, I've been able to flesh out those calls and make them work--mostly through the help of iPhone hacker Pumpkin who figured...... read more

– Erica Sadun

Last weekend, I decided to expand Coverflow to work with my entire photo album. This involved exploring the MusicLibrary and PhotoLibrary frameworks to find out how I could extract a complete set of albums and their pictures. The PLPhotoLibrary class...... read more

– Erica Sadun

iPhones and iPod touches running 1.1.3 and later allow you to add applications to your Springboard home screen without restarting the entire Springboard process. A simple loader called "nikita" (which will play a big role in the upcoming SDK) allows...... read more

– Erica Sadun

A short while back, I wrote about my difficulties in redirecting log phone data. At the time, I could not get NSLog to properly redirect to a file using stderr. I was frustrated by the fact that NSLog didn't seem...... read more

– Erica Sadun

When it comes to the iPhone, phone function comes first. Incoming calls, SMS, and USSD (unstructured supplementary service data, including account balance notifications for prepaid plans) messages will supersede your application. You can program around this by watching for core...... read more

– Erica Sadun

Given that the iPhone is all but undocumented at the moment with the SDK not promised until February, I find that it often helps to add the following code to my classes. It allows me to see what methods are...... read more

– Erica Sadun

You'd think that NSLog would write to stderr, right? Right? Um, no. At least not on the iPhone. This morning I spent way too much time trying to figure out why my freopen([logPath fileSystemRepresentation], "a", stderr); line wasn't working and...... read more

– Erica Sadun