View Full Version : New tp iPhone programming...don't hurt me.
DmbShn41
Jun 22, 2009, 06:07 PM
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.
robbieduncan
Jun 23, 2009, 01:47 AM
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.
Luke Redpath
Jun 23, 2009, 06:18 AM
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.
DmbShn41
Jun 23, 2009, 07:52 PM
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...
firewood
Jun 24, 2009, 01:56 AM
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
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.