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

Using MAAttachedWindow with an NSStatusItem

I get asked how to do this disproportionately often, so I put together a sample project showing how you can have an NSStatusItem in the menubar which spawns an MAAttachedWindow instead of a menu (really, it’s ridiculously simple - no tricks involved). It looks like this:

Could be cool for status displays, alerts, or just having [...]


NSColorWell bug on Leopard

Just a heads up: in the release version of Leopard (9A581), there seems to be a bug with the NSColorWell control. Specifically, if its focus-ring type is set to “none”, it won’t visually update itself until its window loses focus. It still functions normally code-wise, but it won’t update its actual appearance.
You can reproduce this [...]


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


CoreData Application template issue on Tiger

I’m posting this mostly so that others who encounter the same problem have a fighting chance of finding this information on Google.
I ran into an issue with an app created using the CoreData Application template in Xcode (not either of the two CoreData Document-based Application templates, though this may well affect those too). I’ve reproduced [...]


HUDWindow

Another week, another custom window style no-one else bothered to make. This time, it’s a recreation of iPhoto’s “Adjust” palette, in the form of HUDWindow (an NSPanel subclass). Download the source code from my Cocoa Source Code page, and/or take a look at a screenshot.


← Before