• 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: Creator Code for Packages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Creator Code for Packages


  • Subject: Re: Creator Code for Packages
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Wed, 1 Nov 2006 00:21:46 +0100


On 31 Oct 2006, at 13:48, Sherm Pendley wrote:

On Oct 31, 2006, at 7:15 AM, Gerriet M. Denkmann wrote:

Although the documentation for NSFileManager says that "keys, such as NSFileHFSCreatorCode and NSFileHFSTypeCode, do not apply to directories" (which makes sense, because HFS+ has no room to store this) there is a way to set TypeCode and CreatorCode for directories.


Just insert into your directory another directory called "Contents" which contains a file called PkgInfo which contains a string of 8 characters with TypeCode and CreatorCode (e.g. "????MyAp")

This was pointed out to me off list by some friendly and knowledgable person.

Gerriet.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Creator Code for Packages (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Creator Code for Packages (From: Sherm Pendley <email@hidden>)

  • Prev by Date: [NSCalendar currentCalendar] leak
  • Next by Date: Multi-line NSTable Views
  • Previous by thread: Re: Creator Code for Packages
  • Next by thread: [NewB] calling shell from ObjC within a PreferencesPane
  • Index(es):
    • Date
    • Thread