Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

DmbShn41

macrumors 6502
Original poster
Jun 22, 2009
295
2
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.
 
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.

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.
 
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.
 
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.

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...
 
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.

iirc
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.