Sha256: e0819ea993196e58debb1ec746688cc9b0cbca1c99621e8039d80c22f6bcfccc

Contents?: true

Size: 1.13 KB

Versions: 9

Compression:

Stored size: 1.13 KB

Contents

//
//  RhoDelegate.m
//  rhorunner
//
//  Created by lars on 8/11/09.
//  Copyright 2009 Home. All rights reserved.
//

#import "RhoDelegate.h"

@implementation RhoDelegate

@synthesize postUrl;
/*
- (void)doCallback:(NSString*)message {
	// Create post body
	NSData* postBody = [message dataUsingEncoding:NSUTF8StringEncoding];
	// Start notification thread	
	[NSThread detachNewThreadSelector:@selector(NotifyViewThreadRoutine:)
							 toTarget:self withObject:postBody];		
}

- (void)NotifyViewThreadRoutine:(id)object {
    NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
    
	// Get message body and its length
	NSData *postBody = (NSData*)object;	
	NSString *postLength = [NSString stringWithFormat:@"%d", [postBody length]];
	
	// Create post request
	NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
	[request setURL:[NSURL URLWithString:postUrl]];
	[request setHTTPMethod:@"POST"];
	[request setValue:postLength forHTTPHeaderField:@"Content-Length"];
	[request setHTTPBody:postBody];
	
	// Send request
	[NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
	
    [pool release];
}*/

@end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rhodes-1.5.5 platform/iphone/Classes/RhoDelegate.m
rhodes-1.5.4 platform/iphone/Classes/RhoDelegate.m
rhodes-1.5.3 platform/iphone/Classes/RhoDelegate.m
rhodes-1.5.2 platform/iphone/Classes/RhoDelegate.m
rhodes-1.5.1 platform/iphone/Classes/RhoDelegate.m
rhodes-1.5.0 platform/iphone/Classes/RhoDelegate.m
rhodes-1.4.2 platform/iphone/Classes/RhoDelegate.m
rhodes-1.4.1 platform/iphone/Classes/RhoDelegate.m
rhodes-1.4.0 platform/iphone/Classes/RhoDelegate.m