Archive for January, 2006
Saturday, January 28th, 2006
Think first. Think some more. Think about the whole problem. Think about a little part of the problem you’re going to start with. Think about the whole thing again, in relation to your idea on the starting point.
-Wil Shipley
My app had some code that would allow the user to spawn an unlimited number of helper […]
Posted in Commentary | No Comments »
Wednesday, January 25th, 2006
AppleScript expects files in the form of
Users:bcooke:Movies:blah.mov
If you’re like most sane people, you want to use
/Users/bcooke/Movies/blah.mov
To do this, you just have to prefix your path with ‘posix file’.
via Sundown via google
Posted in Commentary | No Comments »
Friday, January 20th, 2006
In QuickTime’s export dialog, “MPEG-4 Audio” is “AAC”. Somehow iMovie and QuickTime are using a different dialog for their export “sound” options. Compare the two lists of compressors below:
Default Sound options when using ‘MovieExportDoUserDialog’
QuickTime 7 and iMovie’s dialog
The QT7/iMovie dialog has some clear advantages.
Shorter
MPEG-4 Audio is re-worded as AAC (as far as I […]
Posted in QuickTime, Commentary | 2 Comments »
Wednesday, January 18th, 2006
If your window doesn’t have an “InitialFirstResponder” set, each elements “nextKeyView” is ignored. I guess that makes sense? Something to remember anyway.
Posted in Commentary, Interface Builder | No Comments »
Monday, January 16th, 2006
My copy of iLife ‘06 showed up today. I don’t feel like I’m the right person to give it a full review, but here’s my two cents:
iPhoto: is much faster (seriously, *much* faster with my 5613 photos), has cool date overlay when scrolling, a nice full screen implementation, photocasting (would love this if […]
Posted in Apple, Commentary, Personal | No Comments »
Friday, January 13th, 2006
After spending the past couple nights with them, I can say with ease: Cocoa’s Distributed Objects are very nice. I’ve used other IPC mechanisms before (FIFOs or named pipes, sockets, etc.). Distributed objects remove at least %90 of the work compared to traditional IPC mechanisms. Cocoa continues to please.
Posted in Cocoa, Commentary, Code | No Comments »
Thursday, January 12th, 2006
To protect against inevitable drive failure, I clone my PowerBook’s startup disk to two firewire drives, one at work and one at home. Up until recently, that involved OS X’s Disk Utility and “restore”ing the startup disk to the firewire drive. That process was klunky and took about two hours (my external disks are slow). […]
Posted in 3rd Party Apps, Personal | 2 Comments »
Wednesday, January 11th, 2006
When I sat down tonight to work on my app, it just kept crashing. Seems a new exception, QTMovieInitializedOnWrongThread, was added to QuickTime. Searching on ADC produced 0 results. Google couldn’t even find anything about it. Fortunately, the error needs little explaining: I need to initialize my QTMovie object in […]
Posted in QuickTime, Code | 1 Comment »
Monday, January 9th, 2006
While I’m transcoding video, I want to display the elapsed time in form:
3 minutes 34 seconds
and
1 hour 32 minutes
and
5 days 4 hours 23 minutes
I feared this problem. However, fifteen minutes of fumbling through Apple’s docs and I’ve got the answer in:
[NSCalendarDate years…. sinceDate];
I love dreading a problem and then […]
Posted in Cocoa, Code | No Comments »
Saturday, January 7th, 2006
Short version:
Xcode is secretly building my release builds as universal binaries. Editing the pbxproj to remove the reference to i386 fixed things for me.
update:It’s something with my environment causing this.
Longer version:
I recently added Growl support to my app. It was super easy. I snagged the Growl source, built the Growl.framework […]
Posted in Apple, Code, Complaints, Xcode | 2 Comments »