{ "id": "62591", "key": "TIMOB-1959", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-04-15T03:06:32.000+0000", "created": "2011-04-15T03:06:31.000+0000", "priority": { "name": "Trivial", "id": "5" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:31:28.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
There doesn't seem to be anyway to do an absolute path using\nTi.include in iOS. I've tried the following with various\nmodifications of each with no success:
\nTi.include('/windows/menu.js');
\nTi.include('app://windows/menu.js');
\nTi.include(Ti.fileSystem.resourcesDirectory+'/windows/menu.js');
[ERROR] error loading path:\nfile://localhost/Users/eddie/Library/Application%20Support/iPhone%20Simulator/4.1/Applications/CE687F4B-F7E7-4543-8217-898478D9B6B0/Manatee.app//Users/eddie/Dropbox/Mobile%20Apps/Manatee/Resources/windows/menu.js,\nError Domain=NSCocoaErrorDomain Code=260 \"The operation\ncouldn’t be completed. (Cocoa error 260.)\" UserInfo=0x7e34260\n{NSFilePath=/Users/eddie/Library/Application Support/iPhone\nSimulator/4.1/Applications/CE687F4B-F7E7-4543-8217-898478D9B6B0/Manatee.app//Users/eddie/Dropbox/Mobile\nApps/Manatee/Resources/windows/menu.js
+1
\nThere really needs to be some way to include a file via an\nabsolute paths in Titanium. This limitation is forcing me to put\nevery single window in the root directory, which is non-ideal in\nmany cases.
Also here: \nhttps://appcelerator.lighthouseapp.com/projects/32238/tickets/2585-...
\nI'm also waiting on this...
Dupe of #2585, as per above.