• 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: NSUserDefaults question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserDefaults question


  • Subject: Re: NSUserDefaults question
  • From: email@hidden
  • Date: Tue, 5 Mar 2002 10:07:15 -0800

So, if there is a simple one-line way of changing a single default
for the app name of my choice in CoreFoundation, how come there isn't
a method like that in NSUserDefaults? Or is there one, and I just
haven't see it?

Apple seems to have chosen a policy that CF has the kitchen sink, while Foundation has only that little sink in the bathroom with the inlaid seashells. There are many, many examples of things you can do in CF that you can't do in Foundation (although Foundation, to continue the analogy, is conveniently located in the bathroom for some purposes, and those seashells sure are pretty...). I personally find this to be unfortunate, as Obj-C makes for a much nicer API than C, but I can understand why maintaining two parallel sets of API would be bothersome.
It would at least be nice if more objects were bridged between CF and Foundation, though. If I have to drop down to CF to make some special call, I can live with that, but when that means I have to convert all my existing code over to CF because the relevant object (NSBundle, NSUserDefaults) isn't bridged, that really sucks...
I've just gone and logged a bug on Apple about this. If you care about this issue, then as with all things you care about that Apple holds sway over, you should go log a bug. This has been a public service announcement. :->

Ben Haller
Stick Software
_______________________________________________
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.

  • Follow-Ups:
    • Re: NSUserDefaults question
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Localizing about files
  • Next by Date: Parsing strings? File getline?
  • Previous by thread: Re: NSUserDefaults question
  • Next by thread: Re: NSUserDefaults question
  • Index(es):
    • Date
    • Thread