Differences From Artifact [9367c723f3]:
- File src/OFObject.h — part of check-in [9f3151f200] at 2010-01-16 13:19:31 on branch trunk — Remove useless definitions in headers. (user: js, size: 7834) [annotate] [blame] [check-ins using] [more...]
To Artifact [762d83757b]:
- File
src/OFObject.h
— part of check-in
[b91a8283fe]
at
2010-03-05 11:52:18
on branch 0.2
— Merge a few changesets from the default branch into the 0.2 branch.
Changesets:
* b95fcaa6d694
* 804c68d222b4
* da8cd738da3d
* 1109d5ce3419
* d03f5c1ca95d
* 2a7017722165
* 4fccdc79eeb7
* d228149fbc04
* 8782d412a4a6 (user: js, size: 7874) [annotate] [blame] [check-ins using]
1 | /* | | | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | /* * Copyright (c) 2008 - 2010 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE included in * the packaging of this file. */ #import "objfw-defs.h" #include <stddef.h> #include <stdint.h> #import <objc/objc.h> /** * \brief A result of a comparison. */ typedef enum { /// The left object is smaller than the right OF_ORDERED_ASCENDING = -1, /// Both objects are equal OF_ORDERED_SAME = 0, /// The left object is bigger than the right OF_ORDERED_DESCENDING = 1 } of_comparison_result_t; /** * \brief The root class for all other classes inside ObjFW. */ @interface OFObject { /// The class of the object Class isa; } |
︙ | ︙ | |||
287 288 289 290 291 292 293 | * * It is also called when the retain count reaches zero. */ - (void)dealloc; @end /** | | > > | 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 | * * It is also called when the retain count reaches zero. */ - (void)dealloc; @end /** * \brief A protocol for creation of copies. */ @protocol OFCopying /** * \return A copy of the object */ - (id)copy; @end /** * \brief A protocol for creation of mutable copies. * * This protocol is implemented by objects that can be mutable and immutable * and allows returning a mutable copy. */ @protocol OFMutableCopying /** * \return A copy of the object */ - (id)mutableCopy; @end |