Download picon-services-11.hqx (113,370 KB)
From: ogorman@kagi.com
Subject: PIconServices 1.1
PIconServices 1.1
PIconServices is a library for developers of MacOS applications.
Source code is included (Code Warrior project), 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 :-) ).
Peter