I think its about time to write something interesting (atleast to me).

I started going through Cocoa Programming for Mac OS X, since I bought a Mac a couple months ago. Cocoa is one of OSX’s most popular API’s. Conclusion? A beautiful thing.

Objective-C has roots from Smalltalk and during college I learned smalltalk from my professor.

Filter *nullFilter = [[[NullFilter alloc] init] autorelease]; SpyOnAmericans *nsa = [[SpyOnAmericans alloc] init]; [nsa setDelegate: nullFilter]; [nsa captureEvents]; [nsa release];

Nifty isn’t it.  A delegate is a helper object that can influence what happens with another object.  In this case the delegate is a Null Filter, which doesn’t do anything.  But the filter could easily be a phone number filter (line tap), a call length filter, or whatever.

More later.