*Coder Blog

Life, Technology, and Meteorology

Month: February 2007

What is dewpoint?

I just posted a new weather article over on the Gaucho Software Forums this morning. The article talks about what dewpoint is and how we can measure it. This is one I’ve been meaning to write for quite awhile now and I finally got a chance to spend some time on it.

If you have any comments on the article, feel free to post them on that forum topic. I have a few ideas for future articles but I want to make sure I don’t run out of topics. If you have any suggestions of topics I should cover, get in touch with me.

Removing preferences belonging to your app…

I was working on some code to uninstall an application, and was pleasantly surprised to find that Cocoa’s NSUserDefaults class will remove the application’s preferences file from ~/Library/Preferences if you remove all the keys:

NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSArray *keys = [[defaults dictionaryRepresentation] allKeys];

int i, count = [keys count];
for (i = 0; i < count; i++) {
   [defaults removeObjectForKey:[keys objectAtIndex:i]];
}

[defaults synchronize];

It's not often you find uninstall options for OS X applications, but it's nice Apple's engineers thought about this case and handle it appropriately.

The Cult of Seasonality

I’d like to send a big thanks out to Scott McGrath for his awesome review of Seasonality on the Maccast

Seasonality is a gorgeous OS X application, a distinctive Cocoa app that makes people stop, look and ask questions when they walk by a display showing its exotic weather maps, satellite imagery, forecast data, and charts of recent weather in your region.

© 2017 *Coder Blog

Theme by Anders NorenUp ↑