The lifespan of an object owned by NSMutableArray, or why Objective-C annoys me and Java makes me happy.

Hard to find memory bug on the iPhone. I had to find it by (a) building the map file for the distribution of the iPhone product, and (b) walking for an hour around Santa Monica (pretty day, though a bit on the warm side) waiting for the map software component to crash. I finally found [...]

Filed under: Commentary, Java, Objective C++ | Posted on September 30th, 2008 by William Woody | 1 Comment »

You know credit is tight when…

I got an offer from my bank to refinance my home mortgage. I’ve gotten these offers before, and the last time I did it I literally signed a single piece of paper–and the paperwork went through without any question. This time I got an offer to refinance my mortgage to a fixed from the adjustable [...]

Filed under: Uncategorized | Posted on September 28th, 2008 by William Woody | No Comments »

iPhone SDK v2.1 gotcha.

The easiest way to load a NIB containing some element of your user interface on the iPhone is to call the UIKit addition to NSBundle loadNibNamed:owner:options:. So throughout my code I have the following: NSArray *nib = [[NSBundle mainBundle] loadNibNamed:@”MyNIBFile” owner:self options:nil]; UIViewController *c = [nib objectAtIndex:1]; Um, there’s a problem here. On return the [...]

Filed under: Objective C++, Things To Remember | Posted on September 15th, 2008 by William Woody | 1 Comment »

Four ways of using a mobile phone.

I’m starting to conclude there are four ways a user will interact with a phone. These four modes or four methods are: (1) Checking incoming messages or current device status. This should be very quick and unobtrusive: you should be able to just press a button or two and get the status you want. (2) [...]

Filed under: Commentary, Meta | Posted on September 11th, 2008 by William Woody | No Comments »

A detached table delegate must be referred in the NIB

Here’s a puzzling problem I just encountered a third time, and wasted a better part of the morning sorting out, which I had solved before but forgot to record my solution. On the iPhone, I wanted to create an object which serves as a delegate to a UITableView. This object is then instantiated in the [...]

Filed under: Things To Remember | Posted on September 11th, 2008 by William Woody | No Comments »

OpenGL Fog: the z component is at the model transformation.

When dealing with fog, the z distance used to compute the fog density. However, which z? Turns out, the z depth used is the z depth that is computed after applying the GL_MODELVIEW matrix but before applying the GL_PROJECTION matrix. One result of this is that through the careful manipulation of both matrixes you can [...]

Filed under: Things To Remember | Posted on September 4th, 2008 by William Woody | No Comments »

Categories

Archive

Links

Meta

Copyright © 2010 William Edward Woody. All rights reserved.

Theme modified from the original Tech Blue, designed by Hive Designs • Ported by Free WordPress Themes and Linux Web Hosting