BrT

Musings about technology and other neat stuff

BrT random header image

Faster version of “Clean downloads stack”

December 10th, 2008 · No Comments

For some time I have been using this technique (with the variation mentioned in my comment: use the application also as the stack overlay icon) to clean my Downloads stack in the OSX dock. The only problem with using an Automator app is that it is quite slow, so I have replaced it with a [...]

[Read more →]

Tags: · · ·

WILTAC #5: zero is a special case

December 9th, 2008 · No Comments

I spent a few minutes today trying to figure out why, when setting a value to zero in an NSTableView, the number formatter I had associated with that column (to add a percentage sign to each number) was not being applied. Eventually, I realized that zero is a special case for NSNumberFormatter, and by default [...]

[Read more →]

Tags: · · ·

Using automator to download desktop pictures (howto)

December 6th, 2008 · No Comments

I get most of my desktop background pictures from either vladstudio or the NASA Image of the Day site, both excellent sources of fantastic images. To make it easier to fetch a particular image, I have created two Automator workflows, which you can download here:
Get image from Vladstudio.zip
Get image from NASA image of the day.zip
To [...]

[Read more →]

Tags: · · · · ·

WILTAC #4: Undo

November 19th, 2008 · No Comments

Today I learned how to add support for undo/redo operations using NSUndoManager. This was completely new to me, and I was surprised at how cleverly done it is – essentially, for every operation that you want to undo, you provide the “inverse” operation, and NSUndoManager takes care of keeping them in appropriate stacks for undo/redo, [...]

[Read more →]

Tags: · · ·

EmacsWiki: Mac OSTweaks – Tips for using and integrating Emacs on Mac OS X. Particularly nice is the tip for integrating with the Mac OS X print dialog. (tags: emacs tips howto macosx printing )
(0)




Disabling Quit and rewriting keyboard shortcuts – Useful tips for disabling and modifying key shortcuts in Mac OS X. (tags: macosx hacks tips keyboard keybindings @readlater )
(0)







Easy video conversion in Mac OS X

October 10th, 2008 · No Comments

After a lot of searching (and trying iMovie) for how to convert an AVI video file to flash (.flv) format, I found ffmpegX, a nice tool that does all the hard work, invoking other tools in the backend as needed.
Posted by email from zzamboni’s posterous

[Read more →]

Tags: · · ·

WILTAC #2: Designated initializers

October 10th, 2008 · No Comments

I learned today the term designated initializer:

When a class has multiple initializers, the designated initializer is the one that actually does the work, normally the one with the most parameters. All other initializers call the designated one, providing different amounts of default parameter values.

I was aware of the concept – many classes have [...]

[Read more →]

Tags: · · · ·

WILTAC #1: invoking methods on nil in Objective-C

October 7th, 2008 · No Comments

Welcome to the first installment of “What I learned today about Cocoa” (WILTAC).
I have recently started reading Aaron Hillegass’ excellent Cocoa Programming for Mac OS X, third edition, with the intention of brushing up my very lacking Cocoa skills (all of them learned empirically by looking at other people’s code and reading the documentation). To [...]

[Read more →]

Tags: · · · ·