• Stars
    star
    123
  • Rank 290,145 (Top 6 %)
  • Language
    Swift
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Example app that illustrates how to get open-in-place to work well with iOS document providers.

Swift Platform: iOS Twitter

Open in Place.

Example app that illustrates how to get open-in-place to work well with iOS file providers.

It shows how to:

  • invoke the document picker in open mode for files and directories
  • receive open-in-place file references through Drag and Drop
  • use and persist the security scoped URLs the document picker or Drag and Drop gives you
  • work with a directory in a coordinated manner to stay in sync
  • edit a text file in a coordinated manner such that your changes are written safely and such that outside changes appear in the editor automatically
  • use the WorkingCopyUrlService file-provider SDK to fetch information about entries
  • open using x-callback-url without user interaction for files in folders user has previously granted access using XCallbackOpener

Using the document picker to open directories will probably only work for iCloud Drive, external drives and a few third party apps. I am the author of Working Copy and Secure ShellFish that fully supports opening directories in-place. Opening files in-place should be supported by all file providers.

The excellent Textastic has been doing this for a while and so does Codea, iA Writer and Pythonista. My hope is that providing sample code will encourage others to follow suit.

A good place to start is at the top of ListController and EditController.

If you have any questions the easiest way to catch me is on Twitter as @palmin.

More Repositories

1

ios-multi-back-button

back-button replacement for iOS 8 that allows going back multiple levels
Objective-C
371
star
2

ios-dragable-table-cells

Objective-C library for drag-n-drop of UITableViewCells in a navigation hierarchy of view controllers.
Objective-C
50
star
3

x-document-source

Objective-C
31
star
4

animated-ui-label

UILabel that animates changes to text
Objective-C
18
star
5

wc_previews

Preview modes for Working Copy
CSS
15
star
6

preview

Swift
6
star
7

obj-c-soap11-client

Lightweight methods for encoding and decoding SOAP 1.1 in Objective-C envelopes and making valid SOAP requests.
Objective-C
6
star
8

cph-cocoa-speech-recog

Swift
5
star
9

fogbugz-ical-timesheet

PHP bridge from FogBugz timesheet to iCalendar feed
PHP
3
star
10

submodule-child

3
star
11

repositoryname

3
star
12

ExternalDisplay

Swift
3
star
13

foo

2
star
14

multi-button

Objective-C
2
star
15

gpglab

2
star
16

cocoa-keyval-bind

Lightweight simple NSObject extensions to simplify transferring values when updated.
Objective-C
2
star
17

bar

2
star
18

subgist

2
star
19

working-copy-debug

Public repository to help out the guys @ working copy
2
star
20

Working-Copy.playgroundbook

Swift
2
star
21

umlaut2

2
star
22

palmin.github.io

HTML
2
star
23

Debug

Just a repo to help me with a bug !
JavaScript
1
star
24

343

1
star
25

test

1
star
26

hejsa

1
star
27

Zerfall-Java

A Java version of the Processing game Zerfall.
Java
1
star
28

umlaut

1
star
29

has-slash

1
star
30

subtest

1
star
31

gogogo

Go
1
star
32

agda-stdlib

Agda
1
star
33

highlig

1
star
34

sparkle-lfs

1
star
35

Branch-Test

1
star
36

russian-filenames

1
star
37

kckgkglglglglg

1
star
38

jens-uwe

1
star
39

videotest

HTML
1
star
40

short

1
star
41

testout

HTML
1
star
42

php-unsafe-eval-robot

Looks for eval($_POST in sourcecode and warns repository owner.
PHP
1
star
43

LearntoCode

Swift
1
star
44

Branch-2

1
star
45

Zerfall

An open source zombie survival platformer, coded in Processing.
Processing
1
star
46

tilde

1
star
47

testtest

1
star
48

netlify-lfs

HTML
1
star
49

imagefolderdrag

1
star
50

empty

empty without commits
1
star
51

empty-again

Objective-C
1
star
52

obj-c-partition-2d

Two-dimensional space partitioning of Objective C objects allowing fast retrieval in rectangle or circle.
Objective-C
1
star
53

char-debug-2

1
star
54

llh-h-h-hhhhhhhj.-kjjjj

1
star
55

scroll

1
star
56

rebase

1
star
57

feed

1
star
58

symlinktest

1
star
59

no-master

1
star
60

submodule-parent

1
star
61

branchtest-45

1
star
62

no-commits-yet

Objective-C
1
star
63

Shapes.playgroundbook

Swift
1
star
64

yolo1234

1
star
65

c64

Realtime video filter for iPhone that simulates 16 color c64 palette
Objective-C
1
star