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
UIPickerView (resizing)
One of the prettiest built-in views on the iPhone is the UIPickerView, which presents a slot-machine-like list of options. Unfortunately, this view isn’t particularly easy to use, as its default presentation takes up quite a bit of screen real-estate, and … Continue reading
Posted in iPhone
Comments Off
Deep Copying
Yesterday, we discussed loading a (mutable) plist from disk. To review: there are built-in Cocoa functions that load plists, but they return immutable data structures. (Happily, Core Foundation functions exist that can create mutable plists from XML files.) Suppose you … Continue reading
Posted in iPhone
Comments Off
Mutable Plists
Property Lists, or plists, are collections of strings, numbers, booleans, dates, base64 data, arrays, and dictionaries (associative arrays). They are a standardized, flexible data structure used (among other places) throughout Mac OS X. Plists are stored as XML files on … Continue reading
Posted in iPhone
Comments Off
viewWillAppear
Some posts are of general interest, some are more narrow in their focus. This is a small post, on a specific question, to which I don’t even have all the answers. But if you’re working with Cocoa on the iPhone, … Continue reading
Posted in iPhone
Comments Off
Locked Queue
Today, something pretty simple: An implementation of a threadsafe queue in Cocoa/Objective-C, suitable for use when implementing the producer-consumer pattern. Nothing too extraordinary: I use an NSMutableArray to store the data (object ids) and the pthreads library for synchronization.
Posted in iPhone
Comments Off
Mac Mini Memory (Part 1)
I’ve been using a Mac Mini (2.0GHz Core 2 Duo/1GB memory) for iPhone development. Mostly, it’s great, but it is a little low on memory. It always seems to have enough to run whatever I’m using at the moment w/o … Continue reading
Posted in iPhone
Comments Off
Multithread Cocoa (Run Loops)
When writing multithreaded Cocoa apps (on Mac OS X or on iPhone OS) it’s necessary to consider the “run loop(s)” of your application. Run loops are the message pumps which drive (among other things) all the parts of your application … Continue reading
Posted in iPhone
Comments Off
Random Cocoa
Today, just three quick notes on iPhone development, Objective-C, and Cocoa. Briefly: The iPhone has no true fixed-width font NSMutableArray isn’t really anything like an array NSNumber lets you wrap integers and floats as objects
Posted in iPhone
Comments Off
Xcode and SVN
When setting up Xcode to use Subversion (SVN) as its Source Code Management (SCM) system for a new project, I encountered a few hiccups. Nothing too major, and I’m sure that some of them were due to my unfamiliarity with … Continue reading
Posted in iPhone
Comments Off
Xcode
Today, some random notes on Xcode (Apple’s IDE for Mac OS and iPhone OS): A few odds and ends I’ve noticed since starting to work with it a couple of weeks ago. (I like Xcode, but it does seem to … Continue reading
Posted in iPhone
Comments Off