GLEssentials/Source/main.m
/* |
Copyright (C) 2015 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
Standard AppKit entry point. |
*/ |
#ifdef TARGET_IOS |
#import <UIKit/UIKit.h> |
#import "AppDelegate.h" |
#else // OS X |
#import <Cocoa/Cocoa.h> |
#endif |
int main(int argc, char * argv[]) { |
#ifdef TARGET_IOS |
@autoreleasepool { |
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); |
} |
#else |
return NSApplicationMain(argc, (const char**)argv); |
#endif |
} |
Copyright © 2015 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2015-08-07