Matt Legend Gemmell Modesty is Lying

Mac OS X Cocoa and iPhone Development Services available at Instinctive Code.
Mac OS X Cocoa and iPhone Developer for hire

Other Pages

Categories

Posts on Source

MGViewAnimation minor update

Just a minor update this time, to resolve an issue which affects both NSViewAnimation and (prior to this update, of course) MGViewAnimation too. Views placed right next to each (with no space between) would sometimes develop a 1-pixel gap during the course of an animation which moved them both in the same direction. As you [...]


Convert Jerome’s Keywords to WordPress Tags

I finally got around to updating my WordPress installation here on mattgemmell.com to version 2.3, and I noticed the new native tags feature. I’d previously been using the excellent Jerome’s Keywords plugin for my tags, and I thought it would be fun to write a PHP script to convert Jerome’s Keywords tags into native WordPress [...]


How to get a Quick Look preview as an NSImage

I wrote a quick category on NSImage allowing you to get an image containing a Quick Look preview of the file at a given path. You can specify the size, and whether the preview should be rendered as an icon (i.e. with a document border, drop-shadow, page-curl and file type/extension label superimposed). So, you can [...]


MGViewAnimation update

Another slight update to MGViewAnimation (available on the Cocoa Source Code page). This one just adds an override of the -stopAnimation method to behave like NSViewAnimation’s does (i.e. move all animations to their end frame), and a slight optimization. I also got around to including the license in the actual download.
Same license as before, and [...]


Setting the text color of an NSButton

I wrote a little category on NSButton tonight to allow getting/setting the color of the label text, e.g. on checkboxes and such. Handy for putting controls in HUD Windows, where you’ll usually want white text instead of the default black.
Since the code is so short, I decided to make it the inaugural entry on pastebuffer.com, [...]


← Before After →