Feeds

Discover OS X's hidden artistic side

Jobs' past revisited

3 Big data security analytics techniques

Mac secrets One of the most frequently used Cocoa classes is NSImage which, as the name suggests, is all about displaying and manipulating image data. The imageNamed: method of this class retrieves an image reference for you - provided that you know the name of the image you're after.

Many of the images that can be retrieved via the imageNamed: method have well documented names, but there's a lot of stuff in there that's not well-known. It's those images - including some for Windows - that I'll be digging into here. I shall also give you source code to a little utility that uses an entirely different mechanism to retrieve images used by OS X.

Old NeXT image

Dig into the past with AppKit

Internally, AppKit maintains an extensive list of small bitmaps that are referred to as the built-in icon list. When you call the imageNamed: method, this is one of many places that gets searched for an image of that name. You shouldn't confuse this with documented system image names such as NSImageNameIconViewTemplate, NSImageNameRefreshTemplate, and so on.

In general, the documented images are high-quality scalable images while the built-in icon list contains non-resizable bitmaps, which only look good - well, some do - at their default size.

NeXT step

Before we go any further let's take a trip down memory lane. Fire up our old friend Interface Builder, drop a NSImageView control onto a window and set the image name to NXdefaulticon. Note: capitalization is important.

You should be rewarded with a blast from the past: the old NeXT icon. NeXT, was of course, the company created in 1985 by Apple chief executive Steve Jobs during his brief Apple hiatus. Apple went on to buy NeXT and incorporated much of its programming framework into OS X.

Interestingly, AppKit contains a lot of these historical relics, including NXdefaultappicon, NXHelpBacktrack, and a great deal more. I imagine that a lot of these image names were originally supported to aid in porting existing NeXTSTEP applications across to OS X while the latter was under development.

In addition to a wide variety of NeXT icons, you'll also find a full complement of - horror of horrors! - Windows bitmaps. It's enough to make any self-respecting Mac developer cringe but - yes - they're there!

SANS - Survey on application security programs

Next page: Heads-up

More from The Register

next story
This time it's 'Personal': new Office 365 sub covers just two devices
Redmond also brings Office into Google's back yard
Oh no, Joe: WinPhone users already griping over 8.1 mega-update
Hang on. Which bit of Developer Preview don't you understand?
Microsoft lobs pre-release Windows Phone 8.1 at devs who dare
App makers can load it before anyone else, but if they do they're stuck with it
Half of Twitter's 'active users' are SILENT STALKERS
Nearly 50% have NEVER tweeted a word
Internet-of-stuff startup dumps NoSQL for ... SQL?
NoSQL taste great at first but lacks proper nutrients, says startup cloud whiz
Ditch the sync, paddle in the Streem: Upstart offers syncless sharing
Upload, delete and carry on sharing afterwards?
New Facebook phone app allows you to stalk your mates
Nearby Friends feature goes live in a few weeks
Microsoft TIER SMEAR changes app prices whether devs ask or not
Some go up, some go down, Redmond goes silent
Batten down the hatches, Ubuntu 14.04 LTS due in TWO DAYS
Admins dab straining server brows in advance of Trusty Tahr's long-term support landing
prev story

Whitepapers

SANS - Survey on application security programs
In this whitepaper learn about the state of application security programs and practices of 488 surveyed respondents, and discover how mature and effective these programs are.
Combat fraud and increase customer satisfaction
Based on their experience using HP ArcSight Enterprise Security Manager for IT security operations, Finansbank moved to HP ArcSight ESM for fraud management.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Top three mobile application threats
Learn about three of the top mobile application security threats facing businesses today and recommendations on how to mitigate the risk.
3 Big data security analytics techniques
Applying these Big Data security analytics techniques can help you make your business safer by detecting attacks early, before significant damage is done.