Usually, when a project access to the hard disk (for images), macOS ask for permissions. But not this time.
The process runs in three times:
a. drop a folder onto a Canvas
b. press the Process pushbutton (look below)
the code scan the dropped folder contents, generate a valid html “file” stored in a TextArea;
c. That data can be saved to disk (Save As HTML PushButton)…
d. Rendered immediately: press the Render HTML PushButton in a nw window using an HTMLViewer.
The html links some images (.images/.png).
I also have an icon “To the Top” with each image.
I have a SelectFolder that ask me to choose the images location.
None of these are displayed; macOS ask me nothing.
Tim:
With the i5, the project works fine; the images appeared.
i5:
El Capitan / High Sierra
Xojo 2015r1.
M1: it does not ask for permissions (running in the IDE). This is probably because I use SelectFolder to get the images folder; then I load each image by name: Images_FI.Child("image1.png")
// Ask the user to choose the images folder
Data_FI = SelectFolder()
// Renders the document
wRender.HTMLViewer1.LoadPage(TA.Text, Data_FI)
I must say I’m not sure why Apple or anyone might think that this has added extra, useful, security to macOS. Someone who knows how has added some Declares and - voila - we are back to where we were previously.
To the Xojo people:
When will you add a “Big Sur” Special Page with tips and tricks to run Xojo projects with “Big Sur” ?
(Next: do the same with “Monterey”)
PS: it is possible that I read that thread last year, but I have troubles to recall if I took my pills this morning, so remembering what I read one year ago is beyond… !