ObjFW  Check-in [7992490163]

Overview
Comment:Allow classes in collections requiring OFCopying.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 79924901635faaeea93509a9aafd71334bb35cfb977b468732c61e3f790b6d7c
User & Date: js on 2013-07-23 22:48:27
Other Links: manifest | tags
Context
2013-07-24
11:49
Improve documentation. check-in: 7e5de0a086 user: js tags: trunk
2013-07-23
22:48
Allow classes in collections requiring OFCopying. check-in: 7992490163 user: js tags: trunk
20:46
configure: Fix warning about missing spinlocks. check-in: 26f6bd3396 user: js tags: trunk
Changes

Modified src/OFObject.h from [3de31d4c62] to [58996a4468].

572
573
574
575
576
577
578










579
580
581
582
583
584
585
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595







+
+
+
+
+
+
+
+
+
+







 * This method is called if an instance method was not found, so that an
 * implementation can be provided at runtime.
 *
 * @return Whether the method has been added to the class
 */
+ (bool)resolveInstanceMethod: (SEL)selector;

/*!
 * @brief Returns the class.
 *
 * This method exists so that classes can be used in collections requiring
 * conformance to the OFCopying protocol.
 *
 * @return The class of the object
 */
+ copy;

/*!
 * @brief Initializes an already allocated object.
 *
 * Derived classes may override this, but need to do
 * @code
 *   self = [super init]
 * @endcode

Modified src/OFObject.m from [87e58e39d7] to [fd13e3d461].

1155
1156
1157
1158
1159
1160
1161
1162

1163
1164

1165
1166
1167
1168
1169
1170
1171
1172
1173
1155
1156
1157
1158
1159
1160
1161

1162
1163

1164

1165
1166
1167
1168
1169
1170
1171
1172







-
+

-
+
-









+ (void)dealloc
{
	[self doesNotRecognizeSelector: _cmd];
	abort();
}

+ copyWithZone: (void*)zone
+ copy
{
	[self doesNotRecognizeSelector: _cmd];
	return self;
	abort();
}

+ mutableCopyWithZone: (void*)zone
{
	[self doesNotRecognizeSelector: _cmd];
	abort();
}
@end