2010-12-12 01:25:09 +00:00
|
|
|
#ifndef __ruamoko_Array_Private_h
|
|
|
|
#define __ruamoko_Array_Private_h
|
|
|
|
|
|
|
|
#include <Array.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
Internal Array methods
|
|
|
|
*/
|
|
|
|
@interface Array (Private)
|
|
|
|
|
2010-12-12 10:45:12 +00:00
|
|
|
///\name Private methods
|
2010-12-16 11:20:58 +00:00
|
|
|
///Don't use these unless you know what you're doing.
|
2010-12-12 10:45:12 +00:00
|
|
|
//\{
|
2010-12-12 01:25:09 +00:00
|
|
|
/**
|
|
|
|
Adds an object to the receiver, but without retaining it.
|
|
|
|
|
|
|
|
This is a dangerous thing to do, and it's only done so that we can use an
|
2010-12-12 04:45:48 +00:00
|
|
|
%Array to implement the AutoreleasePool class.
|
2010-12-12 01:25:09 +00:00
|
|
|
|
|
|
|
\warning Using this method can result in crashes, and is only included
|
|
|
|
for internal use by other classes.
|
|
|
|
*/
|
|
|
|
- (void) addObjectNoRetain: (id)anObject;
|
|
|
|
|
|
|
|
/**
|
|
|
|
Removes an object from the receiver, but without releasing it.
|
|
|
|
|
|
|
|
This can leak objects, and is only used so that we can use Arrays to
|
|
|
|
implement the autorelease system.
|
|
|
|
*/
|
|
|
|
- (void) removeObjectNoRelease: (id)anObject;
|
2010-12-12 10:45:12 +00:00
|
|
|
//\}
|
2010-12-12 01:25:09 +00:00
|
|
|
|
|
|
|
@end
|
|
|
|
|
2010-12-16 11:20:58 +00:00
|
|
|
/*
|
|
|
|
By including this header, we tell the compiler that we make use of Array's
|
|
|
|
private methods.
|
|
|
|
*/
|
|
|
|
@reference Array (Private);
|
|
|
|
|
2010-12-12 01:25:09 +00:00
|
|
|
#endif //__ruamoko_Array_Private_h
|