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

NSUserDefaults


  • Subject: NSUserDefaults
  • From: Oftenwrong Soong <email@hidden>
  • Date: Thu, 3 Sep 2009 14:05:14 -0700 (PDT)

Hi all,

Why does NSUserDefaults provide method stringForKey but not a method setString:forKey (akin to setBool:forKey, setFloat:forKey, etc.)? This does not seem symmetric.

I'm using setObject:forKey when saving a NSString to the defaults database. Is this correct?

Thanks,
Soong




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSUserDefaults
      • From: Steven Riggs <email@hidden>
    • Re: NSUserDefaults
      • From: Andy Lee <email@hidden>
    • Re: NSUserDefaults
      • From: Steven Degutis <email@hidden>
  • Prev by Date: Does -[NSFileManager attributesOfItemAtPath:error:] traverse symlinks?
  • Next by Date: Re: NSUserDefaults
  • Previous by thread: Re: Does -[NSFileManager attributesOfItemAtPath:error:] traverse symlinks?
  • Next by thread: Re: NSUserDefaults
  • Index(es):
    • Date
    • Thread