You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Kevin Hawkins (JIRA)" <ji...@apache.org> on 2012/10/25 06:34:12 UTC

[jira] [Commented] (CB-1475) Allow Cleaver to use as a wwwFolderName an absolute path (eg. ~/Library)

    [ https://issues.apache.org/jira/browse/CB-1475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13483893#comment-13483893 ] 

Kevin Hawkins commented on CB-1475:
-----------------------------------

I would second the desire to be able to specify an absolute path for the startPage, from a different angle: mimicking Android Cordova's behavior, I would like iOS to be able to specify an absolute web (HTTP(S)) path for the start page as well.

We could kill two birds with one stone in this issue, if we added an additional (BOOL) property specifying whether startPage represented an absolute path or not.
                
> Allow Cleaver to use as a wwwFolderName an absolute path (eg. ~/Library)
> ------------------------------------------------------------------------
>
>                 Key: CB-1475
>                 URL: https://issues.apache.org/jira/browse/CB-1475
>             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: http://www.atlassian.com/software/jira