Matt Legend Gemmell Modesty is Lying

Mac OS X Cocoa and iPhone Development Services available at Instinctive Code.
Favorites icon
Favorites for iPhone
Speed-dial with style.
Mac OS X Cocoa and iPhone Developer for hire

Other Pages

Categories

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, [...]


MAAttachedWindow NSWindow subclass

I once again come bearing gifts for you: this time it’s MAAttachedWindow, an NSWindow subclass that lets you visually attach borderless windows to other windows or just to specified points on the screen. It’s potentially useful for displaying contextual help, options related to a part of your UI, or just for drawing attention to things.
Take [...]


MATrackingArea for NSView

Tracking rectangles in NSViews, eh? They’re kind of crap. Getting the events is a bit hit-and-miss, and if you move the mouse too fast you’ll often find that you miss a mouseExited: event and your view is left looking stupid. It’s an old problem, and it’s very annoying. It certainly annoys me.
Rumour has it that [...]


MGViewAnimation update

Just a quick note that my MGViewAnimation code (an NSViewAnimation drop-in replacement, which runs all animations on the same thread for better perceived smoothness and synchronisation) has been updated; see the Cocoa Source Code page for the download.
Thanks to Joe Goh for a bug-fix which prevented animations from running unless at least one animation-dictionary had [...]


← Before After →