|
@@ -137,11 +137,13 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
on them.
|
|
|
|
|
|
The `value` argument can be a key-value coding compliant object, an array or dictionary returned from the methods in
|
|
|
- `NSJSONSerialization`, or an array containing one element for each managed property. An exception will be thrown if
|
|
|
- any required properties are not present and those properties were not defined with default values.
|
|
|
+ `NSJSONSerialization`, or an array containing one element for each managed property.
|
|
|
+
|
|
|
+ An exception will be thrown if any required properties are not present and those properties
|
|
|
+ were not defined with default values.
|
|
|
|
|
|
- When passing in an array as the `value` argument, all properties must be present, valid and in the same order as the
|
|
|
- properties defined in the model.
|
|
|
+ If the `value` argument is an array, all properties must be present, valid and in the same
|
|
|
+ order as the properties defined in the model.
|
|
|
|
|
|
@param value The value used to populate the object.
|
|
|
|
|
@@ -156,11 +158,13 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
on them.
|
|
|
|
|
|
The `value` argument can be a key-value coding compliant object, an array or dictionary returned from the methods in
|
|
|
- `NSJSONSerialization`, or an array containing one element for each managed property. An exception will be thrown if any
|
|
|
- required properties are not present and those properties were not defined with default values.
|
|
|
+ `NSJSONSerialization`, or an array containing one element for each managed property.
|
|
|
+
|
|
|
+ An exception will be thrown if any required properties are not present and those properties
|
|
|
+ were not defined with default values.
|
|
|
|
|
|
- When passing in an array as the `value` argument, all properties must be present, valid and in the same order as the
|
|
|
- properties defined in the model.
|
|
|
+ If the `value` argument is an array, all properties must be present, valid and in the same
|
|
|
+ order as the properties defined in the model.
|
|
|
|
|
|
@param realm The Realm which should manage the newly-created object.
|
|
|
@param value The value used to populate the object.
|
|
@@ -179,16 +183,24 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
If nested objects are included in the argument, `createOrUpdateInDefaultRealmWithValue:` will be
|
|
|
recursively called on them if they have primary keys, `createInDefaultRealmWithValue:` if they do not.
|
|
|
|
|
|
- If the argument is a Realm object already managed by the default Realm, the argument's type is the same
|
|
|
- as the receiver, and the objects have identical values for their managed properties, this method does nothing.
|
|
|
+ The `value` argument is used to populate the object. It can be a Realm object, a key-value coding
|
|
|
+ compliant object, an array or dictionary returned from the methods in `NSJSONSerialization`, or an
|
|
|
+ array containing one element for each managed property.
|
|
|
|
|
|
- The `value` argument is used to populate the object. It can be a key-value coding compliant object, an array or
|
|
|
- dictionary returned from the methods in `NSJSONSerialization`, or an array containing one element for each managed
|
|
|
- property. An exception will be thrown if any required properties are not present and those properties were not defined
|
|
|
- with default values.
|
|
|
+ If the object is being created, an exception will be thrown if any required properties
|
|
|
+ are not present and those properties were not defined with default values.
|
|
|
+
|
|
|
+ If the `value` argument is a Realm object already managed by the default Realm, the
|
|
|
+ argument's type is the same as the receiver, and the objects have identical values for
|
|
|
+ their managed properties, this method does nothing.
|
|
|
|
|
|
- When passing in an array as the `value` argument, all properties must be present, valid and in the same order as the
|
|
|
- properties defined in the model.
|
|
|
+ If the object is being updated, all properties defined in its schema will be set by copying from
|
|
|
+ `value` using key-value coding. If the `value` argument does not respond to `valueForKey:` for a
|
|
|
+ given property name (or getter name, if defined), that value will remain untouched.
|
|
|
+ Nullable properties on the object can be set to nil by using `NSNull` as the updated value.
|
|
|
+
|
|
|
+ If the `value` argument is an array, all properties must be present, valid and in the same
|
|
|
+ order as the properties defined in the model.
|
|
|
|
|
|
@param value The value used to populate the object.
|
|
|
|
|
@@ -206,16 +218,24 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
If nested objects are included in the argument, `createOrUpdateInRealm:withValue:` will be
|
|
|
recursively called on them if they have primary keys, `createInRealm:withValue:` if they do not.
|
|
|
|
|
|
- If the argument is a Realm object already managed by the given Realm, the argument's type is the same
|
|
|
- as the receiver, and the objects have identical values for their managed properties, this method does nothing.
|
|
|
+ The `value` argument is used to populate the object. It can be a Realm object, a key-value coding
|
|
|
+ compliant object, an array or dictionary returned from the methods in `NSJSONSerialization`, or an
|
|
|
+ array containing one element for each managed property.
|
|
|
+
|
|
|
+ If the object is being created, an exception will be thrown if any required properties
|
|
|
+ are not present and those properties were not defined with default values.
|
|
|
+
|
|
|
+ If the `value` argument is a Realm object already managed by the given Realm, the
|
|
|
+ argument's type is the same as the receiver, and the objects have identical values for
|
|
|
+ their managed properties, this method does nothing.
|
|
|
|
|
|
- The `value` argument is used to populate the object. It can be a key-value coding compliant object, an array or
|
|
|
- dictionary returned from the methods in `NSJSONSerialization`, or an array containing one element for each managed
|
|
|
- property. An exception will be thrown if any required properties are not present and those properties were not defined
|
|
|
- with default values.
|
|
|
+ If the object is being updated, all properties defined in its schema will be set by copying from
|
|
|
+ `value` using key-value coding. If the `value` argument does not respond to `valueForKey:` for a
|
|
|
+ given property name (or getter name, if defined), that value will remain untouched.
|
|
|
+ Nullable properties on the object can be set to nil by using `NSNull` as the updated value.
|
|
|
|
|
|
- When passing in an array as the `value` argument, all properties must be present, valid and in the same order as the
|
|
|
- properties defined in the model.
|
|
|
+ If the `value` argument is an array, all properties must be present, valid and in the same
|
|
|
+ order as the properties defined in the model.
|
|
|
|
|
|
@param realm The Realm which should own the object.
|
|
|
@param value The value used to populate the object.
|