New tp iPhone programming...don't hurt me.

Discussion in 'iOS Programming' started by DmbShn41, Jun 22, 2009.

  1. DmbShn41 macrumors 6502

    Jun 22, 2009
    New to iPhone programming, while I have other lagnuage programming skills. I have just a few questions related to outputting files created from an app. First off, can you create a file within an app, and then be able to output it somewhere, whether transfer it thru USB, email, text...etc? Secondly, how would the iPhone react if you were writing a program within an app, using a program language not native to the iPhone? Thanks for any help.
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    Yes you can save to a file via a huge number of methods. Not convinced you can easily transfer over USB, email should be possible with the 3.0 API.

    With regards to a non-native programming language it will just plain, flat-out fail. You can use Objective-C or nothing.
  3. Luke Redpath macrumors 6502a

    Nov 9, 2007
    Colchester, UK
    I guess you could conceivably implement some kind of file-transfer protocol over the dock connector using the new APIs in the 3.0 SDK but certainly not easily for a beginner.
  4. DmbShn41 thread starter macrumors 6502

    Jun 22, 2009
    Not neccessarily writing an iPhone program...I work in the food industry and we deal with PLC's, mainly Logic programming, using Allen Bradley RS Logic 500/5000. I am interested in developing an app where techs on the production floor could view the Logic through pre-loaded notes, and while observing the equipment, could make changes to the Logic itself, or even write new Logic, transfer(email...) the program to IT who then can upload to the PLC itself thru network. It would be great if you can transfer files thru USB, then we could plug directly into PLC and transfer...
  5. firewood macrumors 604

    Jul 29, 2003
    Silicon Valley
    You can compile code on an iPhone (any language for which you can fit the compiler inside a single process). However you can't run the resulting code on the iPhone (data is marked non-executable). You can export the compiled binary over wifi to some other host for execution.

    You could also develop a language interpreter or machine simulator (several exist for the iPhone), but an app containing a visible interpreter very likely won't get accepted for distribution by the App store.


Share This Page