flvThing is released

I’ve released flvThing on the www.automagic-software.com web site. It seems to play every flv file I’ve thrown at it quite nicely 🙂 The flv files are played using the installed flash player which is hosted inside a WebView control. The application creates a tiny very stupid web server that serves up the flash files as well …

OmniGraffle is SO cool!

I’ve been building a simple little app to play FLV files on the Mac and I should be releasing it some time over this weekend. I needed to make some icons and I threw them together in OmniGraffle Pro. Go check out www.omnigroup.com for more details.  I’ve used it a few times for this sort of …

Blog spam and other stuff

I finally got around to cleaning up the spam on this blog. Unfortunately it looks like I zapped a couple of legitimate comments in the process however 😉  I’ve been really busy of late working and looking after the monster baby (who just recently turned 1 year old). On the train to and from work I’ve been building …

Multiple ruby on rails applications under different folders served by Apache on Mac OS X

I’ve been doing quite a bit of development recently using Ruby on Rails under Mac OS X. Unfortunately it can be a little tricky to get rails apps deployed nicely under Apache. The machine I’m using is an aging G4 with very little RAM so running rails apps in CGI mode is very slow! Initially …

The joys of coding with a child on your lap

Well, for one you can only do it one handed! Also you have to be ready for sudden lunges towards the keyboard. Bang bang bang go the keys. Oops a wrong click or an inopportune Enter and say goodbye to all that work. Still it is nice for the little one to see what Daddy does all …

The cocoa rendering system is really nice

For a secret project I’m currently working on I needed to make a NSTextView that resized its contents so that it was always fully visible regardless of how many lines of text were in there. Coding something like that under Windows would have been pretty awful (especially since the text needs to still be editable), …

Accessing the string and attribute data in a NSTextView

NSTextView stores its data in a NSTextStorage object. NSTextStorage descends from NSMutableAttributed string, so that gives us a clue. The easiest thing to do is to make a category on the NSAttributedString class to do whatever it is you want containing something like the following.      NSRange range;      int i;      int L = [self length];                  i = 0;      while(i<L) …