Re: PackageMaker and custom folder icons
Re: PackageMaker and custom folder icons
- Subject: Re: PackageMaker and custom folder icons
- From: Charles Srstka <email@hidden>
- Date: Tue, 12 Feb 2002 12:15:47 -0600
I know about this one because I had to figure out how to do this the
other way for Pacifist.
You can store the resource fork, all your metadata, etc. What you need
to do is to encode your file in AppleDouble format. You get two files.
One is the data file. Leave it with the original file's name. The other
one is the one containing all the HFS-specific stuff. Give it the
original file's name with a '._' appended to the beginning of its name.
So if the original file is called 'somefile', you end up with two files,
one named 'somefile' which is the data fork, and the other one named
'._somefile' which contains the HFS stuff. Put them in the same
directory, and the installer aught to join them when you put them
together.
Charles
On Tuesday, February 12, 2002, at 06:51 AM, Phil Barrett wrote:
I want to ship custom icons in a .pkg install package.
From my pre-packaging Perl script, I do the following:
1. manually create an empty Icon^M file
2. copy the icon data into Icon^M/..namedfork/rsrc
3. use SetFile to make Icon^M invisible
4. use SetFile to set the custom icon bit on the folder
This all works and the directories which are fed to PackageMaker all
have
correct custom icons.
But PackageMaker doesn't like resource forks, and on install I get
Icon^M
files with empty resource forks.
So, does anyone know how to get a custom folder icon into a .pkg?
Phil
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.