39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
initControllers(void)
{
void *pool = objc_autoreleasePoolPush();
controllers = [[OFArray alloc] initWithObject:
[[[OFGameController alloc] of_init] autorelease]];
objc_autoreleasePoolPop();
}
@implementation OFGameController
+ (OFArray OF_GENERIC(OFGameController *) *)controllers
{
static OFOnceControl onceControl = OFOnceControlInitValue;
|
|
|
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
initControllers(void)
{
void *pool = objc_autoreleasePoolPush();
controllers = [[OFArray alloc] initWithObject:
[[[OFGameController alloc] of_init] autorelease]];
objc_autoreleasePoolPop(pool);
}
@implementation OFGameController
+ (OFArray OF_GENERIC(OFGameController *) *)controllers
{
static OFOnceControl onceControl = OFOnceControlInitValue;
|