# `GSDocument importNative:error:`

*Instance Method*

Reads a Glyphs document, a Glyphs package, or an icon set into the receiver.

## Declaration

```swift
func importNative(_ url: URL) throws
```

```objc
- (BOOL) importNative:(NSURL *) url error:(NSError **) error;
```

```python
importNative_error_(url: NSURL) -> tuple[bool, NSError]
```

## Parameters

- `error` — On output, a pointer to an error object that describes why the method failed, or `nil` if no error occurred. If you are not interested in the error information, pass `nil` for this parameter.

## Return Value

`YES` if the method succeeded, otherwise `NO`.

## Discussion

This is the import primitive, not the `NSDocument` entry point: it performs no beta expiry check. See `GSDocument (MainApplication)`.

