226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
/*!
* @brief Sets a value for a key.
*
* If the key starts with an `@`, the `@` is stripped and
* `[super setValue:forKey:]` is called.
* If the key does not start with an `@`, this is equivalent to
* @ref setObject:forKey:. In this case, if the dictionary is immutable, an
* @ref OFUndefinedKeyException is thrown.
*
* @param key The key to set
* @param value The value to set the key to
*/
- (void)setValue: (id)value
forKey: (OFString *)key;
|
|
|
|
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
|
/*!
* @brief Sets a value for a key.
*
* If the key starts with an `@`, the `@` is stripped and
* `[super setValue:forKey:]` is called.
* If the key does not start with an `@`, this is equivalent to
* OFMutableDictionary#setObject:forKey:. In this case, if the dictionary is
* immutable, an @ref OFUndefinedKeyException is thrown.
*
* @param key The key to set
* @param value The value to set the key to
*/
- (void)setValue: (id)value
forKey: (OFString *)key;
|