Skip to content

Commit

Permalink
... Actually, THIS is the commit with the changes for TARGET_IPHONE_S…
Browse files Browse the repository at this point in the history
…IMULATOR. Whoops.
  • Loading branch information
sptramer committed Aug 25, 2010
1 parent 912d76b commit 512fe99
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions iphone/Classes/FilesystemModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#import "TiFilesystemFileProxy.h"
#import "TiFilesystemBlobProxy.h"

#ifdef TARGET_IPHONE_SIMULATOR
#if TARGET_IPHONE_SIMULATOR
extern NSString * TI_APPLICATION_RESOURCE_DIR;
#endif

Expand Down Expand Up @@ -49,7 +49,7 @@ -(id)isExteralStoragePresent

-(NSString*)resourcesDirectory
{
#ifdef TARGET_IPHONE_SIMULATOR
#if TARGET_IPHONE_SIMULATOR
if (TI_APPLICATION_RESOURCE_DIR!=nil && [TI_APPLICATION_RESOURCE_DIR isEqualToString:@""]==NO)
{
// if the .local file exists and we're in the simulator, then force load from resources bundle
Expand Down
4 changes: 2 additions & 2 deletions iphone/Classes/TiHost.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#define DEBUG_EVENTS 0
#endif

#ifdef TARGET_IPHONE_SIMULATOR
#if TARGET_IPHONE_SIMULATOR
extern NSString * const TI_APPLICATION_RESOURCE_DIR;
#endif

Expand All @@ -26,7 +26,7 @@ @implementation TiHost
+(NSURL*)resourceBasedURL:(NSString*)fn baseURL:(NSString**)base
{
NSString *path = [[NSBundle mainBundle] bundlePath];
#ifdef TARGET_IPHONE_SIMULATOR
#if TARGET_IPHONE_SIMULATOR
if (TI_APPLICATION_RESOURCE_DIR!=nil && [TI_APPLICATION_RESOURCE_DIR isEqualToString:@""]==NO)
{
// if the .local file exists and we're in the simulator, then force load from resources bundle
Expand Down
2 changes: 1 addition & 1 deletion iphone/Classes/TiProxy.m
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void DoProxyDelegateChangedValuesWithProxy(UIView<TiProxyDelegate> * target, NSS
}
else
{
[target performSelectorOnMainThread:sel withObject:newValue waitUntilDone:YES modes:[NSArray arrayWithObject:NSRunLoopCommonModes]];
[target performSelectorOnMainThread:sel withObject:newValue waitUntilDone:NO modes:[NSArray arrayWithObject:NSRunLoopCommonModes]];
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions iphone/Classes/TiUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#import "UIImage+Resize.h"

#ifdef TARGET_IPHONE_SIMULATOR
#if TARGET_IPHONE_SIMULATOR
extern NSString * const TI_APPLICATION_RESOURCE_DIR;
#endif

Expand Down Expand Up @@ -1052,7 +1052,7 @@ +(NSData *)loadAppResource:(NSURL*)url
had_splash_removed = YES;
appurlstr = [appurlstr substringFromIndex:1];
}
#ifdef TARGET_IPHONE_SIMULATOR
#if TARGET_IPHONE_SIMULATOR
if (app==YES && had_splash_removed)
{
// on simulator we want to keep slash since it's coming from file
Expand Down

0 comments on commit 512fe99

Please sign in to comment.