Getting a Cocoa App’s Icon

Share Button

Getting your app’s icon:

Getting another app’s icon — this assumes you have a path to the bundle, which you provide as the iconForFile argument:

According to this post, an  app’s icon can be “overridden” by pasting an image into the “Get Info” window. In this case, the suggested solution is:


Compiling FFmpeg 32 bit mode for Mac OS X

Share Button

./configure –extra-cflags=”-arch i386″ –extra-ldflags=’-arch i386′ –arch=x86_32 –target-os=darwin –enable-cross-compile

From Howard Chang’s highly useful blog

Screen from `sudo su`

Share Button

Ever needed to use GNU Screen after calling sudo su? Just use this handy snippet:

From ServerFault.