• 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: NSUserDefauts - Am I Missing the Obvious?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserDefauts - Am I Missing the Obvious?


  • Subject: Re: NSUserDefauts - Am I Missing the Obvious?
  • From: Andrew <email@hidden>
  • Date: Fri, 20 Dec 2002 10:45:56 +1100 (EST)

On Fri, 20 Dec 2002, Angela Brett wrote:

> I had noticed that names of most preferences files look like reversed
> domain names, but I've often wondered if this was just a coincidence
> or if they really are supposed to be reversed domain names. If
> they're supposed to be domain names, why?

Its just to avoid naming comflicts - i.e. to stop one app picking the same
string as another. Certian program names get resused from time to
time...such as Cocoa funnily enough.

> What if I don't have one?

Well its not tragic but it should still be a unique string. You could try
a reverse of you email address, including your username.

> Most of them seem to be com.companyname.appname and something like
> nz.co.cocoa.myapp (rather than com.) seems kind of weird. I didn't

It's not that weird...I have au.net.ugh. Better than being mistaken for an
American ;-)

> to that. There's nothing useful in grouping apps by country,
> especially since the .coms come from all over the place anyway.

It's just piggybacking on someone elses central registry to make sure they
remain unique. .com was traditionaly US based (which is why there is
.co.nz and .com.au) even if the convention hasn't been adhered to very
strictly.

Andrew
_______________________________________________
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: NSUserDefauts - Am I Missing the Obvious? (From: Angela Brett <email@hidden>)

  • Prev by Date: OpenGL Examples broken in 10.2.3
  • Next by Date: Re: OpenGL Examples broken in 10.2.3
  • Previous by thread: Re: NSUserDefauts - Am I Missing the Obvious?
  • Next by thread: RE: NSUserDefauts - Am I Missing the Obvious?
  • Index(es):
    • Date
    • Thread