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

Re: NSUserDefaults objects


  • Subject: Re: NSUserDefaults objects
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 22 Mar 2006 22:04:00 +0100

Chris,

On 22.3.2006, at 21:58, Chris Lewis wrote:

If I made such a
default an instance variable and changed it, am I going to see that
change for other things that reference that default value

In general case this may easily happen. Not with NSUserDefaults though -- the values they return may perhaps be cached sometimes (not that I knew of such a case, but possible it is), but they never are mutable. The example of yours returns an NSData, and you can't change that.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ 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: 
 >NSUserDefaults objects (From: "Chris Lewis" <email@hidden>)
 >Re: NSUserDefaults objects (From: Ondra Cada <email@hidden>)
 >Re: NSUserDefaults objects (From: "Chris Lewis" <email@hidden>)

  • Prev by Date: Re: newbie question re. cocoa front-end to sql db
  • Next by Date: Re: NSUserDefaults objects
  • Previous by thread: Re: NSUserDefaults objects
  • Next by thread: Re: NSUserDefaults objects
  • Index(es):
    • Date
    • Thread