Skip to content

Category Archives: DDG

A Pattern to Declare an Objective-C Mix-in

Sunday, October 9, 2011

The missing piece for creating a full fledged mix-in, or multiple inheritance, language out of Objective-C was the addition of associated references. My earlier post on creating a category that uses associated references is an example of the basic framework to do so. All it was missing was a formal way for the compiler to [...]

Also filed in Code, Objective-C | | Comments Off

Steve Jobs RIP

Thursday, October 6, 2011

Steve Jobs changed my life. Outside of my immediate family, I think I can only say that about him. I wanted to contribute to his vision. I left graduate school to write Mac software — D2 Software’s MacSpin — to contribute to Jobs’ vision. I followed the siren call of multiprocessor performance and lead a [...]

Also filed in iPad, iPhone | | Comments Off

DDGActivity: An Example of Using Associated References

Monday, September 26, 2011

Object oriented languages have always allowed a programmer to add both methods and ivars to any class. Apple recommends you should not over-ride some Cocoa/Cocoa Touch classes. Hence, you cannot use inheritance to add ivars and methods to those classes. Of course, Objective-C has always offered the category mechanism as a way to add arbitrary [...]

Also filed in Code, iPad, iPhone | | Comments Off

DDGPreferences: A Class for all Settings

Saturday, August 27, 2011

Almost every iOS application has individual user preferences. Some apps also use Apple’s Settings app, some don’t. If you develop many different applications, as I do in my development consulting practice, it is tedious to code up a custom preferences class for each app. My class, DDGPreferences, is an attempt to minimize the tedium by [...]

Also filed in Code, iPhone | | Comments Off

DNS-SD Configuration “Gotcha”

Sunday, January 3, 2010

weLost™ uses DNS-SD, DNS Service Discovery, to bootstrap the location of its social network servers. While this was a good idea, it had a very subtle “gotcha” in its configuration. The basic configuration instructions are described here in: Static Server Setup. If you do not intend to support browsing for your resources, then things are [...]

Also filed in Code, iPhone | | Comments Off

Network Reachability

Monday, December 28, 2009

If you write an iPhone application that uses the network, then you must check if the network is both operating and that your server is reachable. Apple has and will continue to reject applications that do not test reachability. To this end, Apple provides iPhone developers a sample application and class, Reachability, that can easily [...]

Also filed in Code, iPhone | | Comments Off

SQLite Persistent Objects

Friday, October 23, 2009

I use Jeff LaMarche’s and his contributor’s SQLite Persistent Objects library in my upcoming iPhone application. This library was created before version 3 of the iPhone OS was released. Because iPhone OS v3 contained Core Data, Jeff and his contributors ceased further development. Yet, I was dependent on it and, hence, I continued private development. [...]

Also filed in Code, iPhone | | Comments Off

The iRush: Programming the iPhone…

Saturday, September 5, 2009

’09ers versus the ’49ers: the only differences are the lack of dirt and hookers. The iRush has been underway for 18 or so months now. The facts are clear. This is a great market to experiment with product design and business models. It is also where many small, “long tail” businesses are being formed — [...]

Also filed in iPhone | | Comments Off

About the DDG blog…

Saturday, September 5, 2009

This blog is a place for me, Andrew Donoho, to write about technical strategy, design and programming/development issues. I’ll be publishing code, primarily for the iPhone. I’ll discuss the strategic implications of technology developments. And I’ll be discussing design in both the user interface and the code. I hope you enjoy it.

Also filed in | | Comments Off
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.