This will be a bit of an introductory article on memory, written in part for my wife and for anyone else who may find such an introduction useful. In The Beginning… In the beginning there was RAM, random access memory. A microprocessor which could execute instructions would be attached to that RAM, which could be [...]
Filed under: Algorithms, C++, Hardware, Objective C++, Papers, Things To Remember | Posted on September 4th, 2010 by William Woody | No Comments »
Some interesting links I found that discuss time zones: Complete timezone information for all countries. – Just as the label says The official US time (NIST & USNO) – Displays the current time in the 10 major time zones in the United States. Time Zone Converter – Allows a search of the various time zones [...]
Filed under: C++, Java, Objective C++, Things To Remember | Posted on September 1st, 2010 by William Woody | No Comments »
Apple Lists iPhone OS 4 Compatibility, Excludes Original iPhone and 1st Gen iPod Touch Up until now the biggest advantage of the iPhone ecosystem is that you could simply code for the latest OS version to ship, and unless you needed certain hardware (such as the camera in the iPhone), you just wrote your software [...]
Filed under: Objective C++, iphone | Posted on April 9th, 2010 by William Woody | 1 Comment »
Cocoa with Love: Demystifying NSApplication by recreating it
Filed under: Macintosh, Objective C++, Things To Remember | Posted on December 16th, 2009 by William Woody | No Comments »
Wouldn’t it be great to have a drawing program on the Macintosh which, after you’ve composed the artwork, can export the drawing commands for Cocoa’s Quartz or the iPhone, so you can cut and paste code to draw the same thing in your program? I thought that would be so cool. And now it turns [...]
Filed under: Macintosh, Objective C++, iphone | Posted on September 22nd, 2009 by William Woody | No Comments »
Someone I’m working with told me that you can load a NIB on the iPhone in the following way: TestViewController *c = [[TestViewController alloc] initWithNibName:@”TestNib” bundle:[NSBundle mainBundle]]; [self presentModalViewController:c animated:YES]; However, this doesn’t appear to work. When chasing down the code, by the time TestViewController -(void)viewDidLoad gets called, self has changed; however, deep inside the [...]
Filed under: Objective C++, Things To Remember, iphone | Posted on April 9th, 2009 by William Woody | No Comments »
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 »
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 »
Don’t hide or disable menu items. This is what separates the User Interface men from the User Interface boys: the suggestion “Instead, leave the menu item enabled. If there’s some reason you can’t complete the action, the menu item can display a message telling the user why” is the most Gawd-aweful suggestion I’ve heard in [...]
Filed under: C++, Commentary, Java, Objective C++ | Posted on July 1st, 2008 by William Woody | No Comments »
I just wrote: return tasks[[value intValue]].objectID; Heh heh heh heh heh… (For those who don’t understand, I just called a std::vector array operator[] method for the array ‘tasks’ with the return value of an Objective-C invocation of ‘intValue’ on the NSNumber value.)
Filed under: C++, Objective C++ | Posted on June 9th, 2008 by William Woody | 2 Comments »