Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-08-2010, 02:54 PM   #5 (permalink)
Helmut Forren
Registered Member
 
Join Date: Feb 2010
Posts: 4
Default

Quote:
Originally Posted by manicaesar View Post
You can view your application Documents folder by creating temporary web server within your app and connecting to it via browser (so it does not matter whether you have PC or Mac). To achieve this:
- Download free lightweight server written in C - Mongoose:
- Add its source files to your app files
- Use Objective-C wrapper for this server which you can find here
- Use localIPAddress method to get address for your server
- Enter the address in web browser on your computer

By default, if you do not set any uri callback function (in the wrapper it is not set), connecting to the server from web browser (iPhone and the computer you connect from should be in the same WiFi net) will result in printing contents of Documents folder of your app. You can browse it and download the files you are interested in

I hope this will be useful.
Thanks for the advice. I have been programming for 25+ years, but only a week on the iPhone. I'm sure I could figure out the above, but it's WAY too complicated for such a simple thing. I'm sure part of it is A**le security.

Perhaps you or someone else can provide an easier solution. Here's what I'm looking for...

(A) Just during development, I need to be able to look inside the iPhone, if for no other reason, to delete my junk files with junk names that I've created during testing. It would also be nice to be able to inspect file contents back on my desktop, rather than having to modify the app to not only write but also read back the file. [EDIT: per scottiphone at iphonedevsdk dot com, "To get file from the device just use organizer. Select your app in the list and twirl it down. Select and drag the app data to your desktop." This indeed works for READING my test files off the iPhone. It won't working for PUTTING test files onto the iPhone, but I'm not doing that. It also won't work for DELETING junk files off the iPhone. I guess I can just remove the app and reinstall for that... Still need to solve (B) below.]

(B) For release, I need users to have a simple solution for getting the file I wrote back over to there desktop. I've seen many existing iPhone apps for that. I was thinking of Readdle Docs. That *would* require my customers to also get another [paid] app. On the other hand, if I went through your suggestion, miniceasar, or perhaps some other that integrated the support into my app itself, then hopefully my customers could much more easily get their data from the iPhone to the desktop. [EDIT: I'm looking into http://groups.google.com/group/diddyFtpServer at the moment, to include FTP capability into my App for this purpose.] [EDIT: Learning further. diddyFtpServer uses GNU GPL, which seems problematic with apple's developer agreement. Looking back at maniceasar's mongoose suggestion, which uses MIT license, which appears for now compatible with apple and iPhone; note I've found comments about BSD license being better than MIT license.] [EDIT: Looks like maniceasar's "here" link is a one-stop-shop with both the wrapper and the mongoose code itself. So other readers of this post can go straight to his third line.]

-Helmut

Last edited by Helmut Forren; 02-08-2010 at 04:56 PM. Reason: found partial answer to (A) and (B)
Helmut Forren is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,868
Threads: 89,225
Posts: 380,691
Top Poster: BrianSlick (7,129)
Welcome to our newest member, stokesreece
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:23 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.