ObjFW  Check-in [f1d6ecb1b8]

Overview
Comment:Add -[self] to OFObject.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: f1d6ecb1b87b78c87f45640261912c574b03a7707e945a87da475d1f634a37d9
User & Date: js on 2011-07-23 13:33:44
Other Links: manifest | tags
Context
2011-07-23
14:28
Add OFIntrospection. check-in: 2e7534b6dc user: js tags: trunk
13:33
Add -[self] to OFObject. check-in: f1d6ecb1b8 user: js tags: trunk
2011-07-22
17:17
Add a test for -[foldUsingBlock:]. check-in: 32d6b7282a user: js tags: trunk
Changes

Modified src/OFObject.h from [36dca16f39] to [0bcf5ccb1b].

201
202
203
204
205
206
207







208
209
210
211
212
213
214
/**
 * \brief Adds the object to the topmost OFAutoreleasePool of the thread's
 *	  autorelease pool stack.
 *
 * \return The object
 */
- autorelease;







@end

/**
 * \brief The root class for all other classes inside ObjFW.
 */
@interface OFObject <OFObject>
{







>
>
>
>
>
>
>







201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
/**
 * \brief Adds the object to the topmost OFAutoreleasePool of the thread's
 *	  autorelease pool stack.
 *
 * \return The object
 */
- autorelease;

/**
 * \brief Returns the receiver.
 *
 * \return The receiver
 */
- self;
@end

/**
 * \brief The root class for all other classes inside ObjFW.
 */
@interface OFObject <OFObject>
{

Modified src/OFObject.m from [d3a58745ba] to [28150d2fd9].

797
798
799
800
801
802
803





804
805
806
807
808
809
810
	 * GNU runtime.
	 */
	if (autoreleasePool == Nil)
		autoreleasePool = [OFAutoreleasePool class];

	[autoreleasePool addObject: self];






	return self;
}

- (void)dealloc
{
	Class class;
	void (*last)(id, SEL) = NULL;







>
>
>
>
>







797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
	 * GNU runtime.
	 */
	if (autoreleasePool == Nil)
		autoreleasePool = [OFAutoreleasePool class];

	[autoreleasePool addObject: self];

	return self;
}

- self
{
	return self;
}

- (void)dealloc
{
	Class class;
	void (*last)(id, SEL) = NULL;