Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7924071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T17:32:08+00:00 2026-06-03T17:32:08+00:00

I have an app I’m writing that has a set of embedded lua scripts

  • 0

I have an app I’m writing that has a set of embedded lua scripts in them. I’d like to be able to edit the scripts on the iPad – is this possible?

The workflow I was thinking of was:

  1. start my app and test;
  2. go to my text editor on the iPad and make changes to the lua script;
  3. close my app;
  4. restart my app to reload the script;
  5. goto 1.

EDIT: I can add the “Open In” option to my app and open the text file as per this question, however, once I do that does the text editor then save the file back to where it came from? or does it just use a copy? This assumes I can find a text editor that will open lua files, I imagine there’s one around somewhere.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T17:32:19+00:00Added an answer on June 3, 2026 at 5:32 pm

    As @danielbeard correctly stated this will not work as straightforwardly as expected on a desktop (or more permissive mobile) OS due to iOS sandboxing model, which effectively constrains application data to the application itself, although it is worth noting the issue at hand is not the sandboxing per se, which also exists in newer versions of OS X, but the fact iOS offers no unifying file system layer which is mirrored into applications’ sandboxes. You can plainly and pretty simply see that for yourself by editing a text document on your desktop in Lion’s TextEdit. TextEdit sees the document being located in its sandbox – ~/Library/Containers/com.apple.TextEdit/Data/Desktop, but it is also clearly saved onto your desktop ~/Desktop – at the same time; both directories are, for the purpose of the sandbox, one.

    Sandbox me once, edit me twice

    the cross-application file layer does not exist in iOS. This means that in iOS, it is not possible to edit one and the same physical copy of a file in multiple applications, as every app needs a copy in its own sandbox. It is however possible to “pass” files from app sandbox to app sandbox (strictly speaking: to copy them) via the “Open In” mechanism supported since iOS 3.2, as seen when opening Mail attachments in other apps.

    Open me up

    If your app implements the ability to forward its .lua documents via this mechanism, any text editor recognizing the file type can receive a copy into its own sandbox. I’m hazy as to implementation details, not being an iOS dev myself, but if the rules of UTI declaration from OS X and some stuff I have observed while using my iDevices holds true, you can even insert the file type into the public.text UTI hierarchy in your own app, which will add support for it to all text editors on the device.

    If the receiving editor implements “Open in” too, and your app has registered as being able to edit .lua files, the editor can later copy the edited file back to your app’s sandbox. What happens there (de-duplication, versioning, overwriting with or without prompting) would be up to you, within the constraints imposed by the iOS SDK, which I know nothing about.

    The following Apple Developer documents may provide a useful starting point:

    • iOS App Programming Guide, specifically the section “App-Related Resources”
    • Document-Based App Programming Guide for iOS
    • Information Property List Key Reference, specifically the section “Cocoa Keys”
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have an app that has listings - think classified ads - and each listing
In my NodeJS express application I have app.js that has a few common routes.
OK I have app for iPad that reads magazines. All previous issues works fine.
I have an express app that has a bunch of static javascript files that
I have app in which i have recorded sound files i want that i
have an app that finds your GPS location successfully, but I need to be
I have an app that needs to read a PDF file from the file
I have terminal.app set to accept utf-8 and in bash I can type unicode
I have app that stores tree structure in CoreData. There is an ManagedObject, Item,
I am writing an app that requires the user's current location (lastknownlocation won't be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.