---
title: "loadInPlaceFileRepresentation(forTypeIdentifier:completionHandler:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsitemprovider/loadinplacefilerepresentation(fortypeidentifier:completionhandler:)"
---

# loadInPlaceFileRepresentation(forTypeIdentifier:completionHandler:)

Asynchronously opens a file in place, if possible, returning a progress object.

## Declaration

```swift
func loadInPlaceFileRepresentation(forTypeIdentifier typeIdentifier: String, completionHandler: @escaping @Sendable (URL?, Bool, (any Error)?) -> Void) -> Progress
```

## Discussion

Discussion The system sets the isInPlace parameter to true if the system successfully opened the file in place, or false if it made a local copy. In either case, you must access the returned URL using an NSFileCoordinator object. If the system created a local copy of a file, it will be automatically deleted after your file coordinator relinquishes its read access to the file.

## See Also

### Loading the provider’s contents

- [loadItem(forTypeIdentifier:options:completionHandler:)](foundation/nsitemprovider/loaditem(fortypeidentifier:options:completionhandler:).md)
- [loadDataRepresentation(forTypeIdentifier:completionHandler:)](foundation/nsitemprovider/loaddatarepresentation(fortypeidentifier:completionhandler:).md)
- [loadDataRepresentation(for:completionHandler:)](foundation/nsitemprovider/loaddatarepresentation(for:completionhandler:).md)
- [loadFileRepresentation(forTypeIdentifier:completionHandler:)](foundation/nsitemprovider/loadfilerepresentation(fortypeidentifier:completionhandler:).md)
- [loadFileRepresentation(for:openInPlace:completionHandler:)](foundation/nsitemprovider/loadfilerepresentation(for:openinplace:completionhandler:).md)
- [loadObject(ofClass:completionHandler:)](foundation/nsitemprovider/loadobject(ofclass:completionhandler:)-8ak5d.md)
- [loadObject(ofClass:completionHandler:)](foundation/nsitemprovider/loadobject(ofclass:completionhandler:)-6pysm.md)
- [loadTransferable(type:completionHandler:)](foundation/nsitemprovider/loadtransferable(type:completionhandler:).md)
