cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michal Mocny (JIRA)" <>
Subject [jira] [Commented] (CB-1475) Allow Cleaver to use as a wwwFolderName an absolute path (eg. ~/Library)
Date Wed, 28 Nov 2012 19:59:58 GMT


Michal Mocny commented on CB-1475:

I havent pushed the patch yet, but I've got url start page working locally (trivial patch,
just testing some stuff).
It wasn't really two birds with one stone, so I'll look into relative paths later.

Finally, I suggested on the ML that we change the startPage parameter of CDVViewController
to defaultStartPage, since startPage is actually set in AppDelegate, and the startPage value
provided in viewcontroller is just a fallback.  Alternatively, just improve documentation
so its not easy to make the mistake of changing the wrong one.
> 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.3.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