file-sharing

iPhone Documents directory and UIFileSharingEnabled, hiding certain documents

半腔热情 提交于 2019-11-27 12:31:43
I want the user to be able to access the files in the documents directory but am using core data and dont want the user to be able to access the store (the sqllite db), can i hide it from the user while still allowing file sharing, or can i put it in another directory where it will still get backed up? memmons The answer given by FrenchKiss Dev is not correct. The user will still be able to see the ".data" directory in iTunes and save that locally with all the files inside it. Instead, store private documents in Library/Preferences According to Apple : In addition to the directories documented

How do I access a file share programmatically [duplicate]

人走茶凉 提交于 2019-11-27 02:54:39
问题 This question already has answers here : Accessing a Shared File (UNC) From a Remote, Non-Trusted Domain With Credentials (10 answers) Closed last year . I have a windows forms app running on a machine that is not on a domain, that needs to be able to move a file from the local filesystem to a UNC path. I have a username and password for that path. I was wondering is there any way to do this directly with out execing the net.exe command? Ideally I wouldn't have to map a drive. 回答1: The

Notification of changes to the iPhone's /Documents directory

社会主义新天地 提交于 2019-11-26 21:59:41
We have an app that uses file sharing. UIFileSharingEnable is set etc. and it all seems to work fine, but I'm looking for some sort of notification of when files have been added/deleted on the iPhone side. Can anyone advise? Cheers in advance. This thread on the Apple Developer Forums may be of interest, in which it is suggested that you run a kqueue in its own thread, tracking the app's Documents folder. An Apple tech followed up with some sample code here : - (void)kqueueFired { int kq; struct kevent event; struct timespec timeout = { 0, 0 }; int eventCount; kq =

Notification of changes to the iPhone's /Documents directory

社会主义新天地 提交于 2019-11-26 08:07:27
问题 We have an app that uses file sharing. UIFileSharingEnable is set etc. and it all seems to work fine, but I\'m looking for some sort of notification of when files have been added/deleted on the iPhone side. Can anyone advise? Cheers in advance. 回答1: This thread on the Apple Developer Forums may be of interest, in which it is suggested that you run a kqueue in its own thread, tracking the app's Documents folder. An Apple tech followed up with some sample code here: - (void)kqueueFired { int kq

How to enable file sharing for my app?

谁说我不能喝 提交于 2019-11-26 00:36:09
问题 I have an image editing app where users can apply effects to photos. How could I enable it so that users can see my app in iTunes in the File Sharing tab and then just drag+drop photos to the app? Some of the eBook readers like Stanza works like this and it would be a cool option. Maybe someone can point out a tutorial or resource that talks about how to enable and use this technique. 回答1: You just have to set UIFileSharingEnabled ( Application Supports iTunes file sharing ) key in the info

Accessing a Shared File (UNC) From a Remote, Non-Trusted Domain With Credentials

自古美人都是妖i 提交于 2019-11-26 00:04:43
问题 We\'ve run into an interesting situation that needs solving, and my searches have turned up nill. I therefore appeal to the SO community for help. The issue is this: we have a need to programmatically access a shared file that is not in our domain, and is not within a trusted external domain via remote file sharing / UNC. Naturally, we need to supply credentials to the remote machine. Typically, one solves this problem in one of two ways: Map the file share as a drive and supply the