Overview
Comment: | Add a warning about reimplementing -[isEqual:]. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
b807b66ccc62e36bfd298df14e7cf190 |
User & Date: | js on 2013-02-10 16:36:36 |
Other Links: | manifest | tags |
Context
2013-02-12
| ||
18:14 | OFXMLElement: Retain + autorelease attributes. check-in: 40f7e8bd2e user: js tags: trunk | |
2013-02-10
| ||
16:36 | Add a warning about reimplementing -[isEqual:]. check-in: b807b66ccc user: js tags: trunk | |
2013-02-08
| ||
22:20 | OFURL: Improve -[description]. check-in: e164def279 user: js tags: trunk | |
Changes
Modified src/OFObject.h from [dfac8717ac] to [a61f98d08c].
︙ | ︙ | |||
267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 | withObject: (id)object2; /*! * @brief Checks two objects for equality. * * Classes containing data (like strings, arrays, lists etc.) should reimplement * this! * * @param object The object which should be tested for equality * @return A boolean whether the object is equal to the specified object */ - (BOOL)isEqual: (id)object; /*! * @brief Calculates a hash for the object. * * Classes containing data (like strings, arrays, lists etc.) should reimplement * this! * * @return A 32 bit hash for the object */ - (uint32_t)hash; /*! * @brief Increases the retain count. | > > > > > > > | 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 | withObject: (id)object2; /*! * @brief Checks two objects for equality. * * Classes containing data (like strings, arrays, lists etc.) should reimplement * this! * * @warning If you reimplement this, you also need to reimplement @ref hash to * return the same hash for objects which are equal! * * @param object The object which should be tested for equality * @return A boolean whether the object is equal to the specified object */ - (BOOL)isEqual: (id)object; /*! * @brief Calculates a hash for the object. * * Classes containing data (like strings, arrays, lists etc.) should reimplement * this! * * @warning If you reimplement this, you also need to reimplement @ref isEqual: * to behave in a way compatible to your reimplementation of this * method! * * @return A 32 bit hash for the object */ - (uint32_t)hash; /*! * @brief Increases the retain count. |
︙ | ︙ |