Documents and iTunes

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
rrBUSS9EE
Posts: 98
Joined: Wed May 02, 2012 3:46 pm

Documents and iTunes

Post by rrBUSS9EE » Sat Jun 02, 2012 9:20 pm

Hey!

Is there a mechanism to have document files created/written to by LC to be available in iTunes File Sharing?


Thanx.

rrBUSS9EE
Posts: 98
Joined: Wed May 02, 2012 3:46 pm

Re: Documents and iTunes

Post by rrBUSS9EE » Tue Jun 05, 2012 3:08 pm

Sorry to bump my own post… no one has any thoughts on this?

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: Documents and iTunes

Post by scotttyang » Tue Jun 05, 2012 6:09 pm

under iOS settings, check file sharing, then your app will show up in the APP section of itunes where you can browse, add, delete files.

on mouseUp
set the defaultFolder to specialFolderPath("Documents")
put field "write" into URL ("file:iphonetest.txt")
end mouseUp

Get the data back out of our file

on mouseUp
set the defaultFolder to specialFolderPath("Documents")
put URL ("file:iphonetest.txt") into field "read"
end mouseUp

or see the lessons.runrev.com section and search under" ios save file"

rrBUSS9EE
Posts: 98
Joined: Wed May 02, 2012 3:46 pm

Re: Documents and iTunes

Post by rrBUSS9EE » Tue Jun 05, 2012 6:30 pm

Thanks… but can you be more specific just where in iOS settings this flag is located. I am having trouble finding it.

I also see nothing mentioned at lessons.runrev.com regarding accessing data files for iOS apps in iTunes.

FYI, my app has created a file at specialFolderPath("Documents")&"/locations.txt". I see no way to access it from iTunes.

scotttyang
Posts: 125
Joined: Sat Jan 31, 2009 12:01 am

Re: Documents and iTunes

Post by scotttyang » Tue Jun 05, 2012 6:42 pm

see the screenshot
Capture.PNG
Capture.PNG (16.06 KiB) Viewed 4045 times

rrBUSS9EE
Posts: 98
Joined: Wed May 02, 2012 3:46 pm

Re: Documents and iTunes

Post by rrBUSS9EE » Tue Jun 05, 2012 10:34 pm

I see (he said slapping hand to forehead). For some reason I was looking in the Settings app on the iOS device.

Thank you.

Post Reply