Skip to content

Instantly share code, notes, and snippets.

@tolmasky
Created January 24, 2010 23:01
Show Gist options
  • Save tolmasky/285497 to your computer and use it in GitHub Desktop.
Save tolmasky/285497 to your computer and use it in GitHub Desktop.
var rootNode = new StaticResourceNode("", null, StaticResourceNode.DirectoryType, YES),
cwd = FILE.cwd();
rootNode.resolveSubPathAsDirectories(FILE.dirname(cwd));
rootNode.resolveSubPath(cwd, StaticResourceNode.DirectoryType, function(cwdNode)
{
var includePaths = global.OBJJ_INCLUDE_PATHS || ["Frameworks", "Frameworks/Debug"],
index = 0,
count = includePaths.length;
for (; index < count; ++index)
cwdNode.resolveSubPathAsDirectories(FILE.normal(includePaths[index]));
cwdNode.resolveSubPath("Frameworks/AppKit/CPView.j", StaticResourceNode.FileType, function()
{
console.log(rootNode.toString(true));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment