ScrollView Mask in DocumentsDirectory not found

CoronaSimulator 2012.922:

I’m trying to build a mask for a ScrollView widget that is generated by the app, on the fly, to fit the screen size, rather than shipping multiple masks.

I have successfully created the mask in the DocumentsDirectory. I set a path for the mask:

local scrollViewPath = system.pathForFile( scrollViewMask, system.DocumentsDirectory )

The code to instantiate the ScrollView:

scrollView = widget.newScrollView{

maskFile = scrollViewPath,

}

returns the error:
WARNING: Failed to find image(/Users/tbuchler/Library/Application Support/Corona Simulator/TT_Mobile-EBA79B234D8438084039545880A3D640/Documents/960x460Mask.jpg)

The file exists in the specified folder, and can later be verified to be found with the code:

local fh, errStr = io.open( scrollViewPath, “r” )
if fh then

Am I missing something, or is this a bug that the ScrollView mask file can’t be in the DocumentsDirectory?

-Tom

[import]uid: 100708 topic_id: 31612 reply_id: 331612[/import]

Hi Tom, 

I am trying to do exactly the same thing and I am struggling with exactly the same question. Its been a while since you asked the question and there was no answer but I wonder if you managed to find a way. Can you kindly share?

Rob, Brent, is there a way for me to keep my mask files on Documents directory and yet have tableView and scrollView use them from there? I am not supposed to or allowed to save them to Resource Directory at runtime so in a bit of a bind. 

Thanks much!!! 

Regards,

Kerem

Found the answer. Adding the following into my tableView definition solves the problem : 

baseDir=system.DocumentsDirectory

Hi Tom, 

I am trying to do exactly the same thing and I am struggling with exactly the same question. Its been a while since you asked the question and there was no answer but I wonder if you managed to find a way. Can you kindly share?

Rob, Brent, is there a way for me to keep my mask files on Documents directory and yet have tableView and scrollView use them from there? I am not supposed to or allowed to save them to Resource Directory at runtime so in a bit of a bind. 

Thanks much!!! 

Regards,

Kerem

Found the answer. Adding the following into my tableView definition solves the problem : 

baseDir=system.DocumentsDirectory