Instance Method
importNative(_:)importNative:error: importNative_error_
Reads a Glyphs document, a Glyphs package, or an icon set into the receiver.
Declaration
func importNative(_ url: URL) throwsDeclaration
- (BOOL) importNative:(NSURL *) url error:(NSError **) error;Declaration
importNative_error_(url: NSURL) -> tuple[bool, NSError]Parameters
errorOn output, a pointer to an error object that describes why the method failed, or
nilif no error occurred. If you are not interested in the error information, passnilfor this parameter.
Discussion
This is the import primitive, not the NSDocument entry point: it performs no beta expiry check. See GSDocument (MainApplication).
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).