Services
Find Stuff
Pages
Buy My Apps
Other Stuff I’ve Built
Book Club
Archives
- May 2018
- February 2014
- December 2013
- November 2013
- August 2012
- July 2012
- April 2012
- March 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
Categories
- Boxing (23)
- Energy (5)
- iPhone (142)
- Jack Handy (283)
- NaNoWriMo (3)
- People (11)
- Planet Microsoft (5)
- Projects (88)
- Python (43)
- Reelviews (13)
- Reverse Engineering (18)
- Six Word Stories (111)
- The Hard Way (3)
- Uncategorized (6)
- UNIX (8)
- Vacation Slides (30)
- Web stuff (51)
Blogroll
Category Archives: iPhone
Simulator Cropping Update
Quoting myself: You may want to extract screenshots from the iPhone simulator, e.g. for submission to the iTunes store. If you take a screenshot of the iPhone simulator’s window (with, say, Cmd-Shift-4 + Space + Left-Click), you end up with … Continue reading
Posted in iPhone
Comments Off
Quickie: URL Form Decoding
Here’s a little utility function I use to decode application/x-www-form-urlencoded strings on the iPhone: – (NSDictionary*)extractArguments:(NSString*)raw { NSArray* args = [raw componentsSeparatedByString:@”&”]; NSMutableDictionary* rv = [NSMutableDictionary dictionaryWithCapacity:[args count]]; for (NSString* sPair in args) { NSArray* aPair = [sPair componentsSeparatedByString:@”=”]; NSString* … Continue reading
Posted in iPhone
Comments Off
NSURL, Trailing Slashes, and OAuth
Here’s a surprisingly important note from the documentation for the NSURL class’ path method: Return Value The path of the URL, unescaped with the stringByReplacingPercentEscapesUsingEncoding: method. If the receiver does not conform to RFC 1808, returns nil. If this URL … Continue reading
OAuth and Export Controls
Reading over the OAuth protocol (RFC 5849), I noticed something a little odd in section 2.1: Since the request results in the transmission of plain text credentials in the HTTP response, the server MUST require the use of a transport-layer … Continue reading
Directory Monitor
With iOS 4.0, AAPL brought File Sharing to the iPhone. This feature is pretty simple to turn on (basically, you just “[a]dd the UIFileSharingEnabled key to your application’s Info.plist file and set the value of the key to YES“, and … Continue reading
Posted in iPhone
Comments Off
Taipan! Update
Just a quick announcement today: I’ve released (and AAPL has approved) a new version of Taipan! — this version incorporates the classic Apple ][ ship graphics, and an option for faster combat. It’s available in the iTunes App Store. The … Continue reading
Lite Versions
There’s a bit of a chicken/egg problem with selling an app on iTunes: In the absence of a big marketing push, it’s pretty hard to persuade people to pay for something based only on some ad copy and a few … Continue reading
Posted in iPhone
Comments Off
Masks
I’ve been playing around with Core Graphics/Quartz 2D image masks. They’re pretty neat, but a little obscure. Today I want to share a few things I wish I’d know when I started working with them.
Posted in iPhone
Comments Off
Metadata
Today’s project is another of those oddballs: I’m not really sure it will be interesting to anyone else, and I’m far from confident that I implemented it optimally, but it did solve a real-world problem that cropped up in one … Continue reading
Posted in iPhone
Comments Off
Multitasking Opt-Out
Given just how much of a hassle it can be to support multitasking on the iPhone, it’s worth a quick mention that it’s possible to opt out of the whole thing. All you need do is add this pair to … Continue reading
Posted in iPhone
Comments Off