Feeds

Discover OS X's hidden artistic side

Jobs' past revisited

Top 5 reasons to deploy VMware with Tegile

For example, NSWinSliderKnobAbove will give you a circa Windows-95 horizontal slider knob, with the indicator pointing upwards. NSWinSliderKnobAbovePressed will give you the pressed-in variant of the same image. Among the others, there's NSWinRadio that's a radio button in its unselected state. It's a mystery why this set of bitmaps were added to AppKit and why they're still there.

Heads-up

Now, you might think the built-in icon list only contains only images from the distant past, but not so. With Leopard, Apple recently introduced official support for Heads Up Display (HUD) windows. The new Interface Builder makes it dead easy to crate a HUD window for your own app, but I guess we'll have to wait until Snow Leopard before Apple give us some nice HUD controls.

As you might expect, the glyphs used to build HUD windows are contained within the built-in icon list. Thus, NSHUDActiveTitleBarFill will give you a vertical strip that's used to provide the graduated fill for an active HUD window's title bar.

All the image names are provided in a file called NSImage Names, which I've included along with this month's demo project. You'll find that some of them are old, and some are very new. For example, Apple introduced a new AppKit class called NSDockTile along with Leopard. Amongst other things, this class allows you to customize the appearance of your application's icon as it sits in the Dock.

If you look at the images entitled NSBadge1&2, NSBadge3, NSBadge4, and NSBadge5, you should gain some understanding of how NSDockTile works internally: rather than rendering that jagged-edged red lozenge from scratch, it selects the appropriate glyph depending on how many characters you've asked to display on the icon badge. Clever, eh?

Scrollbar image

ThemeWidget delivers a scrollbar glyph

Finally, as promised, this month's demo project demonstrates another mechanism whereby AppKit obtains the necessary glyphs used to support the Aqua interface.

My little ThemeWidget application makes use of an undocumented routine, _NSGetThemeWidgetImage, which is very heavily used "under the hood". It takes an image identity and retrieves the requested glyph.

Now, I haven't totally figured this out yet and you'll see from my code the list of valid image ID's is non-contiguous, hence the need to scan forwards or backwards until a new image is found. With that proviso in mind, you can download the demo application and source code here

Choosing a cloud hosting partner with confidence

More from The Register

next story
Microsoft to bake Skype into IE, without plugins
Redmond thinks the Object Real-Time Communications API for WebRTC is ready to roll
Mozilla: Spidermonkey ATE Apple's JavaScriptCore, THRASHED Google V8
Moz man claims the win on rivals' own benchmarks
Microsoft promises Windows 10 will mean two-factor auth for all
Sneak peek at security features Redmond's baking into new OS
FTDI yanks chip-bricking driver from Windows Update, vows to fight on
Next driver to battle fake chips with 'non-invasive' methods
DEATH by PowerPoint: Microsoft warns of 0-day attack hidden in slides
Might put out patch in update, might chuck it out sooner
Ubuntu 14.10 tries pulling a Steve Ballmer on cloudy offerings
Oi, Windows, centOS and openSUSE – behave, we're all friends here
Apple's OS X Yosemite slurps UNSAVED docs into iCloud
Docs, email contacts... shhhlooop, up it goes
Was ist das? Eine neue Suse Linux Enterprise? Ausgezeichnet!
Version 12 first major-number Suse release since 2009
prev story

Whitepapers

Why and how to choose the right cloud vendor
The benefits of cloud-based storage in your processes. Eliminate onsite, disk-based backup and archiving in favor of cloud-based data protection.
Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.
Saudi Petroleum chooses Tegile storage solution
A storage solution that addresses company growth and performance for business-critical applications of caseware archive and search along with other key operational systems.
Getting ahead of the compliance curve
Learn about new services that make it easy to discover and manage certificates across the enterprise and how to get ahead of the compliance curve.