У меня есть этот класс.
.h:
#import
@class GLEngine;
@interface opengl_engineAppDelegate : NSObject {
// Pointer to engine
GLEngine * myGLEngine;
UIWindow * window;
}
@property (nonatomic, retain) IBOutlet GLEngine * myGLEngine;
@property (nonatomic, retain) IBOutlet UIWindow * window;
@end
Вот .m:
#import "opengl_engineAppDelegate.h"
#import "GLEngine.h"
@implementation opengl_engineAppDelegate
@synthesize window;
@synthesize myGLEngine;
// Creating Application
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[myGLEngine activateEngine];
return YES;
}
- (void)applicationDidBecomeActive:(UIApplication *)application
{
[myGLEngine activateEngine];
}
// Destroying Application
- (void)dealloc {
[window release];
[myGLEngine release];
[super dealloc];
}
@end
И GLEngine выглядит так:
#import
#import
#import
#import
#import
#import
@interface GLEngine : UIView {
}
- (void)activateEngine;
@end
Почему ActivEngine никогда не звонит?