incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Commented] (CB-1475) Allow Cleaver to use as a wwwFolderName an absolute path (eg. ~/Library)
Date Mon, 17 Sep 2012 22:33:07 GMT


Shazron Abdullah commented on CB-1475:

I can see how this might be useful for testing in the iOS Simulator, but not on device where
everything is sandboxed though (you can load from the Library/temp/Documents folder of your
app of course).

I think a better approach is to add another property to CDVViewController, say "wwwFolderPath"
which when set, acts as the base folder.
> Allow Cleaver to use as a wwwFolderName an absolute path (eg. ~/Library)
> ------------------------------------------------------------------------
>                 Key: CB-1475
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: iOS
>    Affects Versions: 2.0.0
>            Reporter: Paris Stamatopoulos
>            Assignee: Shazron Abdullah
>            Priority: Minor
>             Fix For: 2.2.0
> Currently - (NSString*) pathForResource:(NSString*)resourcepath returns the path based
on the current [NSBundle]. However one might be interested in loading the application from
an absolute path (e.g. user's ~/Library). 
> Take this snippet for instance:
> NSString *libraryPath = [NSSearchPathForDirectoriesInDomains(NSLibraryDirectory,NSUserDomainMask,
YES) lastObject];
> NSString *folderPath   = [libraryPath stringByAppendingPathComponent:@"www"];
> cdvViewController.wwwFolderName = folderPath;

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message