cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1475) Allow Cleaver to use as a wwwFolderName an absolute path (eg. ~/Library)
Date Sat, 08 Dec 2012 00:03:21 GMT

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

Shazron Abdullah commented on CB-1475:
--------------------------------------

Andrew Grieve patched it further to allow any protocol: https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;a=commit;h=b00d496f9e2be00096e3252d43f5f9f42c930c33
                
> 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: Michal Mocny
>            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

Mime
View raw message