Quentin,you didn't really write anything in response to my last two postings, so I thought I'd just sit down and do a first "testing" implementation of IKIcon for Mac to see whether there are any holes in this.
I've attached a copy.One thing I've realized is that, design-wise, you may actually have been right that we'll want to move more out of IKIcon. While IKIcon itself will definitely house most of the functionality on MacOS X, API-wise it just doesn't look clean.
In particular, when you see that NSWorkspace has iconForFileType: and iconForFile methods, it seems kind of counter-intuitive to have users go to IKIcon to get an icon for a particular MIME type. I've started a category on NSWorkspace (in IKIcon.h, for now) that returns IKIcon objects, and I'll probably extend that to offer MIME type lookup for icons as well.
But I think it'll become kind of crammed if we also add a method for "icon by identifier" into NSWorkspace. What do you say?
Let me know what you think of this first IconKit implementation. Note that I haven't compiled it yet, I'll get to writing a test app for it next.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de<<attachment: IKIcon_Mac.zip>>
