Archive for October, 2008
Date Formatter Examples
Sometimes all you’re really looking for is a basic chunk of code to get something done. For example, I was working on an application yesterday and needed to display the current date in text format: October 29, 2008. A simple concept for sure, however, with the many nuances of date formatters, it takes some time [...]
How to Prevent iPhone from Sleeping
The automatic sleep timer is one of the ways the iPhone saves power. If the screen isn’t touched for a certain amount of time, it dims the screen and eventually turns it off. Although you should leave the timer on, there are times when this is not what you want (games are a good example). [...]
How to Compute String Sizes
If you’ve ever been frustrated trying to find a way to compute the height of a string that wraps you will know my pain. Recently, I discovered that UIKit has made some addition to the NSString class that adds pure magic to the string type. If you lookup the NSString class in the [...]
iPhone Frameworks from the Omni Group
The Omni Group is the company behind some amazing Mac software. For example, OmniGraffle is a great tool for creating wireframes and applications flows (see this post for related info).
Xcode FIXME and TODO
In a previous post I introduced how to use #pragma mark to help navigate source files within Xcode. There are several additional tags that can be used within a source file to call out specific code or content.
C++ on iPhone: Part 2, Exceptions
In part 2 of this C++ on iPhone series I’ll be exploring C++ exception handling support, and as a bonus I’ll touch on use of standard C++ lib console output stream, as well as showing a way to call C++ code from Objective C. As a reminder, exception handling is normally one of the weak [...]
Launching Other Apps within an iPhone Application
In an earlier post I talked about how to launch the browser from within an iPhone application using the UIApplciation:openURL: method.
It is also possible to use this same technique to launch other applications on the iPhone that are very useful.
Examples of some of the key applications that you can launch via URL are:
Launch the Browser [...]





