Posted on Thursday, January 10, 2008 at 21:17
under Code Snippets
· 5 comments
· Print
Some Mac OS X applications can install useful tools to use with Terminal. PDFKey Prohttp://pdfkey.com is one of those applications. Currently I simply installed a binary called “pdfkeypro” in /usr/bin via a .pkg file. This had the obvious draw back of needing the user upgrade it …
Last weekend I wanted to add some kind of list with checkboxes to CuteClips in order to execute a list of tasks… it evolved into BSJobList which is a very easy way to open a window and ask for things that need to be performed. After OK is clicked, all these jobs are executed in t…
Posted on Tuesday, December 12, 2006 at 21:05
under Code Snippets
· 1 comment
· Print
One thing i hate of the NSTextField is that while you can’t use the “enter” key to insert newlines characters you still can insert them, for example, by copying in them text which contains newlines characters. This is plain annoying sometimes! I made this NSFormatter that can be …
This NSWorkspace extension add the method “isInvisibleFileAtPath:” to NSWorkspace class. To use it just call that method with a valid pathname you will return a boolean telling you if the file is invisible or not. This method is the union of many partial ways of checking if a fil…
The attached class is an NSFormatter subclass and is useful for taking a size expressed in byte like “2048” and convert it to an human readable string like “2 KB”. It supports unit of measures up to the Terabyte. Note that this class assumes it receives as input an NSNumber or an…