Sha256: 4c083ea966f92f3909e7f32527cd445f2436b483a8b26556e78bf13128f496a2

Contents?: true

Size: 1.07 KB

Versions: 76

Compression:

Stored size: 1.07 KB

Contents

//
//  TestsAppDelegate.m
//  Tests
//
//  Created by evgeny vovchenko on 5/28/09.
//  Copyright RhoMobile 2009. All rights reserved.
//

#import "TestsAppDelegate.h"

@implementation TestsAppDelegate

@synthesize window;


- (void)applicationDidFinishLaunching:(UIApplication *)application {    

    // Override point for customization after application launch
    [window makeKeyAndVisible];
}


- (void)dealloc {
    [window release];
    [super dealloc];
}


@end

const char* RhoGetRootPath() {
	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
	static bool loaded = FALSE;
	static char root[FILENAME_MAX];
	if (!loaded){
		NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
		NSString *documentsDirectory = //[paths objectAtIndex:0];
		[ [paths objectAtIndex:0] stringByAppendingString:@"/"];
		[documentsDirectory getFileSystemRepresentation:root maxLength:sizeof(root)];
		
		loaded = TRUE;
	}
	[pool drain];
	[pool release];
	
	return root;
}

void rhoSleep( int ms )
{
	[NSThread sleepForTimeInterval: ((float)ms)/1000];
}

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
rhodes-3.0.2 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.2.beta.1 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.1 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.1.beta.8 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.1.beta.7 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.1.beta.6 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.1.beta.5 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.1.beta.4 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.1.beta.3 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.1.beta.2 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.0 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.0.beta.7 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.0.beta.6 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.0.beta.5 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.0.beta.4 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.0.beta.3 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.0.beta.2 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-3.0.0.beta.1 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-2.4.1 platform/iphone/Tests/Classes/TestsAppDelegate.m
rhodes-2.4.1.beta.1 platform/iphone/Tests/Classes/TestsAppDelegate.m