• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PackageMaker and custom folder icons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PackageMaker and custom folder icons


  • Subject: Re: PackageMaker and custom folder icons
  • From: Charles Srstka <email@hidden>
  • Date: Tue, 12 Feb 2002 17:23:31 -0600

On Tuesday, February 12, 2002, at 01:26 PM, Markus Hitter wrote:

Am Dienstag den, 12. Februar 2002, um 19:15, schrieb Charles Srstka:

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.

While this sounds very interesting, an easy way to get the file encoded would be to create a UFS formatted disk image and to use the Finder to copy the files there before pax'ing the archive. This would preserve the Finder info for all other files as well unless you delete the 84-byte sized ._files.

Very good. I completely forgot about that. Yes, you can copy something to a UFS disk, and it will encode it in precisely the format you need to have in your package. Just make sure to package both the file and the ._file, and you'll be good to go.

Charles
_______________________________________________
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.

References: 
 >Re: PackageMaker and custom folder icons (From: Markus Hitter <email@hidden>)

  • Prev by Date: Quick Question On Make Cocoa App Scriptable
  • Next by Date: Strings
  • Previous by thread: Re: PackageMaker and custom folder icons
  • Next by thread: Cocoa, Pure java, or Carbon?
  • Index(es):
    • Date
    • Thread