PIconServices 1.1
PIconServices is a library for developers of MacOS applications.
Source code is included, distributed under the GNU library license.
What is does:
If you want to write an application/plugin using Apples new
IconServicesLib, you will normally also need to add a lot of code to
deal with older Systems. PIconServices gives you ref-counted icons
all the way back to System 7.5.3. See the following code for an
example.
GetPIcon(‘macs’,’help’,&myIcon);
PlotPIcon(&myRect,kAlignNone,kTransformNone,myIcon);
ReleasePIcon(myIcon);

These calls will use IconServices if it is available and will also
work on older systems. Libraries are available for CFM and PPC. Will
also work with classic code if CFM is installed.

New version 1.1 fixes some bugs, makes it faster, a lot of silly code
has been changed/removed. You can even set the compile options to use
icns resources do you only have to package your resources once
(excluding BNDL stuff of course 🙂 ).
The following Routines are now implemented:
GetPIconOwners
AcquirePIcon
ReleasePIcon
RegisterPIconFromResource
UnregisterPIcon
PlotPIcon
PIconToRgn
RectInPIcon
PtInPIcon
GetPIconFromFolder
GetPIconFromFile
GetPIcon
PIconFamilyToIconSuite
PIconToIconSuite
PIconToIconFamily
for more info, or to download, go to http://www.pogma.com/ource/developer.html

Please feel free to contact me with bugs.suggestions mailto:icons@pogma.com

Peter O’Gorman
peter@pogma.com
http://www.pogma.com