Re: NSUserDefaults objects
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