• 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: "/" character in application bundle identifier
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "/" character in application bundle identifier


  • Subject: Re: "/" character in application bundle identifier
  • From: Dietrich Epp <email@hidden>
  • Date: Sun, 28 Sep 2003 09:14:18 -0700

On Saturday, Sep 27, 2003, at 00:50 US/Pacific, Jirtme Laurens wrote:

Hi list,

for dev purpose i incidentally chose my app bundle identifier to contain a "/" character. The unexpected result is that the prefs are now written in a subfolder of the ~/Library/Preferences folder. This seems very natural due to the "/" but I can't see it documented somewhere. Is it safe to use this feature (for a suite of related applications), I am afraid of other side effects I am not aware of.

Why is this unexpected? ~/Library/Preferences/Foo/Bar can't be interpreted any other way than the file 'Bar' in the directory 'Foo' in ~/Library/Preferences.

The / character separates path components... it can't be part of a file name. If you create a file in the Finder containing a /, then look at it in the terminal, you'll see that the slashes have been replaced by colons (which are classic file separators). For the same reason, you can't create a file from the terminal that contains a '/' or in the finder that contains a ':'.

On the other hand, there are horror stories of what happens when the mechanism that prevents slashes in the file name is bypassed (usually with non-unix NFS clients).

I do personally wish that files could have any name, but alas.
_______________________________________________
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: 
 >"/" character in application bundle identifier (From: Jérôme Laurens <email@hidden>)

  • Prev by Date: Re: The Toolbar Widget
  • Next by Date: CustomView and nib file
  • Previous by thread: "/" character in application bundle identifier
  • Next by thread: Re: "/" character in application bundle identifier
  • Index(es):
    • Date
    • Thread