Archive for the 'Cocoa' Category



If you don’t understand the title of this post, don’t bother reading any further. If you do, here’s a nice regular expression that will, given an Obj-C source file (.h or .m), give you all of the method signatures. It should work in every case that I can think of, but if you’re […]

Universal Binary’d

I finally got SS 1.5 to compile as a FAT universal binary. It was all that stupid DotMacKit.framework’s fault. I got off my ass and actually put in the new one.
The only thing I have to worry about is making sure the Take Screenshot function works. It was inverting the color on […]

For SnapShooter, I’m trying to implement S/FTP. I’ve seen two things so far - FTPConnection and CURLHandle. I’m going to try and delve into them between tonight and this weekend and look to see what the best way to upload files would be.

iTunes View

This is an NSView subclass I’ve been working on for about a week. It does the vertical animation already. The bar is an NSProgressIndicator (and drags), and the text bars are also custom subclasses that handle NSArrays of text. It works very well.

Countdown.app

With the impending release of Halo 2, I’ve got a countdown app written. I’ve written several Applescripts about this, but now I’ve gone and Cocoa-fied it. With a pretty UI and non-cheaty method of making it.
Bug fix: Now you can actually change the date it counts down to.
Download Countdown.app

menuPod, etc.

I wrote a neat little app that lets you eject iPods from the menu bar. It’s called menuPod. I’m unsure whether I’m going to release it under Wonder Warp or not. That’s the icon.
Work has continued on my other major OS X app. It’s shaping together quite nicely.

Coming soon…

I’ve started on my second major Cocoa project today. My first remains unannounced, as will this one. However, I will say that its an application for developers, and it also looks like iSync.
More information as I feel to expose it.

NSBundle Extension

NSBundle is very useful, and includes an excellent method that returns the path to a file:
- (NSString *)pathForResource:(NSString *)name ofType:(NSString *)extension
This method, however, requires two strings, which didn’t work for my app. So I wrote the extension. I realize you could use:
[bundle pathForResource:[string stringByDeletingPathExtension] ofType:[string pathExtension]];
but mine is easier:
[bundle pathForResource:string];
Download extension