Mercurial > sdl-ios-xcode
view Xcode-iPhoneOS/Template/SDL Application/___PROJECTNAME___.xcodeproj/hfutrell.pbxuser @ 3422:ec4db979dddb
Fixed bug #847
Roger Willcocks 2009-10-25 08:45:37 PDT
appDidFinishLaunching is triggered before all the setup's complete. The easiest
fix is to arrange for another event to be sent when it's really ready, and run
SDL_main from there. Ref.
http://blog.rightsprite.com/2008/11/iphone-applicationdidfinishlaunching.html
SDL-1.3.0-4563/src/video/uikit/SDL_uikitappdelegate.m:
- (void)postFinishLaunch {
/* run the user's application, passing argc and argv */
int exit_status = SDL_main(forward_argc, forward_argv);
/* free the memory we used to hold copies of argc and argv */
int i;
for (i=0; i<forward_argc; i++) {
free(forward_argv[i]);
}
free(forward_argv);
/* exit, passing the return status from the user's application */
exit(exit_status);
}
- (void)applicationDidFinishLaunching:(UIApplication *)application {
/* Set working directory to resource path */
[[NSFileManager defaultManager] changeCurrentDirectoryPath: [[NSBundle
mainBundle] resourcePath]];
[self performSelector:@selector(postFinishLaunch) withObject:nil
afterDelay:0.0];
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 02 Nov 2009 07:55:42 +0000 |
parents | 20326ba2bda2 |
children |
line wrap: on
line source
// !$*UTF8*$! { 1D6058900D05DD3D006BFB54 /* ___PROJECTNAME___ */ = { activeExec = 0; executables = ( FD92E3970E15A188001244C8 /* ___PROJECTNAME___ */, ); }; 29B97313FDCFA39411CA2CEA /* Project object */ = { activeBuildConfigurationName = Debug; activeExecutable = FD92E3970E15A188001244C8 /* ___PROJECTNAME___ */; activeTarget = 1D6058900D05DD3D006BFB54 /* ___PROJECTNAME___ */; addToTargets = ( 1D6058900D05DD3D006BFB54 /* ___PROJECTNAME___ */, ); codeSenseManager = FD92E3A60E15A18E001244C8 /* Code sense */; executables = ( FD92E3970E15A188001244C8 /* ___PROJECTNAME___ */, ); perUserDictionary = { PBXConfiguration.PBXFileTableDataSource3.PBXFileTableDataSource = { PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; PBXFileTableDataSourceColumnWidthsKey = ( 20, 455, 20, 48, 43, 43, 20, ); PBXFileTableDataSourceColumnsKey = ( PBXFileDataSource_FiletypeID, PBXFileDataSource_Filename_ColumnID, PBXFileDataSource_Built_ColumnID, PBXFileDataSource_ObjectSize_ColumnID, PBXFileDataSource_Errors_ColumnID, PBXFileDataSource_Warnings_ColumnID, PBXFileDataSource_Target_ColumnID, ); }; PBXConfiguration.PBXTargetDataSource.PBXTargetDataSource = { PBXFileTableDataSourceColumnSortingDirectionKey = "-1"; PBXFileTableDataSourceColumnSortingKey = PBXFileDataSource_Filename_ColumnID; PBXFileTableDataSourceColumnWidthsKey = ( 20, 415, 60, 20, 48, 43, 43, ); PBXFileTableDataSourceColumnsKey = ( PBXFileDataSource_FiletypeID, PBXFileDataSource_Filename_ColumnID, PBXTargetDataSource_PrimaryAttribute, PBXFileDataSource_Built_ColumnID, PBXFileDataSource_ObjectSize_ColumnID, PBXFileDataSource_Errors_ColumnID, PBXFileDataSource_Warnings_ColumnID, ); }; PBXPerProjectTemplateStateSaveDate = 240783190; PBXWorkspaceStateSaveDate = 240783190; }; perUserProjectItems = { FD779EEC0E26BA5E00F39101 /* PlistBookmark */ = FD779EEC0E26BA5E00F39101 /* PlistBookmark */; FD779EEE0E26BA5E00F39101 /* PlistBookmark */ = FD779EEE0E26BA5E00F39101 /* PlistBookmark */; FD77A0870E26BDCE00F39101 /* PBXBookmark */ = FD77A0870E26BDCE00F39101 /* PBXBookmark */; FD77A0880E26BDCE00F39101 /* PBXBookmark */ = FD77A0880E26BDCE00F39101 /* PBXBookmark */; FD77A08B0E26BDCE00F39101 /* PBXBookmark */ = FD77A08B0E26BDCE00F39101 /* PBXBookmark */; FD77A08C0E26BDCE00F39101 /* PBXBookmark */ = FD77A08C0E26BDCE00F39101 /* PBXBookmark */; FD77A0A00E26BE0800F39101 /* PBXTextBookmark */ = FD77A0A00E26BE0800F39101 /* PBXTextBookmark */; FDB8BFF00E5A0F6F00980157 /* PBXTextBookmark */ = FDB8BFF00E5A0F6F00980157 /* PBXTextBookmark */; }; sourceControlManager = FD92E3A50E15A18E001244C8 /* Source Control */; userBuildSettings = { }; }; FD779EEC0E26BA5E00F39101 /* PlistBookmark */ = { isa = PlistBookmark; fRef = 8D1107310486CEB800E47090 /* Info.plist */; fallbackIsa = PBXBookmark; isK = 0; kPath = ( CFBundleSignature, ); name = /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/Info.plist; rLen = 0; rLoc = 2147483647; }; FD779EEE0E26BA5E00F39101 /* PlistBookmark */ = { isa = PlistBookmark; fRef = 8D1107310486CEB800E47090 /* Info.plist */; fallbackIsa = PBXBookmark; isK = 0; kPath = ( CFBundleSignature, ); name = /Users/hfutrell/iPhoneSource/gsoc2008_iphone/XCodeiPhoneOS/SDLiPhoneOS/template/SDLApplicationTemplate/Info.plist; rLen = 0; rLoc = 2147483647; }; FD77A0870E26BDCE00F39101 /* PBXBookmark */ = { isa = PBXBookmark; fRef = FD77A07C0E26BD8C00F39101 /* Icon.png */; }; FD77A0880E26BDCE00F39101 /* PBXBookmark */ = { isa = PBXBookmark; fRef = FD77A07E0E26BDA900F39101 /* Default.png */; }; FD77A08B0E26BDCE00F39101 /* PBXBookmark */ = { isa = PBXBookmark; fRef = FD77A07C0E26BD8C00F39101 /* Icon.png */; }; FD77A08C0E26BDCE00F39101 /* PBXBookmark */ = { isa = PBXBookmark; fRef = FD77A07E0E26BDA900F39101 /* Default.png */; }; FD77A09C0E26BDE500F39101 /* main.c */ = { uiCtxt = { sepNavIntBoundsRect = "{{0, 0}, {633, 1148}}"; sepNavSelRange = "{240, 0}"; sepNavVisRange = "{0, 587}"; }; }; FD77A0A00E26BE0800F39101 /* PBXTextBookmark */ = { isa = PBXTextBookmark; fRef = FD77A09C0E26BDE500F39101 /* main.c */; name = "main.c: 15"; rLen = 0; rLoc = 240; rType = 0; vrLen = 587; vrLoc = 0; }; FD92E3970E15A188001244C8 /* ___PROJECTNAME___ */ = { isa = PBXExecutable; activeArgIndices = ( ); argumentStrings = ( ); autoAttachOnCrash = 1; breakpointsEnabled = 0; configStateDict = { }; customDataFormattersEnabled = 1; debuggerPlugin = GDBDebugging; disassemblyDisplayState = 0; dylibVariantSuffix = ""; enableDebugStr = 1; environmentEntries = ( ); executableSystemSymbolLevel = 0; executableUserSymbolLevel = 0; libgmallocEnabled = 0; name = "___PROJECTNAME___"; savedGlobals = { }; sourceDirectories = ( ); }; FD92E3A50E15A18E001244C8 /* Source Control */ = { isa = PBXSourceControlManager; fallbackIsa = XCSourceControlManager; isSCMEnabled = 0; scmConfiguration = { }; }; FD92E3A60E15A18E001244C8 /* Code sense */ = { isa = PBXCodeSenseManager; indexTemplatePath = ""; }; FDB8BFF00E5A0F6F00980157 /* PBXTextBookmark */ = { isa = PBXTextBookmark; fRef = FD77A09C0E26BDE500F39101 /* main.c */; name = "main.c: 15"; rLen = 0; rLoc = 240; rType = 0; vrLen = 587; vrLoc = 0; }; }