SKDocumentCreateWithURL(_:)
Creates a document URL object (of type Skdocument) from a Cfurl object.
Declaration
func SKDocumentCreateWithURL(_ inURL: CFURL!) -> Unmanaged<SKDocument>!Parameters
- inURL:
The URL for the document URL object (of type Skdocument) you are creating. The scheme of the document URL object gets set to the scheme of the URL used. Only URLs with a scheme of “
file” can be used with the 1444897 Skindexadddocument function, but the URL scheme may be anything you like if you use the 1444518 Skindexadddocumentwithtext function. For more information on schemes, see Link 1670302.
Return Value
The new document URL object, or NULL if the document URL object could not be created.
Discussion
Use SKDocumentCreateWithURL to create a unique reference to a file or to another, arbitrary URL that your application will use as a document URL object (of type SKDocument). When your application no longer needs the document URL object, dispose of it by calling CFRelease.
See Also
Working with Documents and Terms
SKDocumentCreate(_:_:_:)SKDocumentCopyURL(_:)SKDocumentGetName(_:)SKDocumentGetParent(_:)SKDocumentGetSchemeName(_:)SKDocumentGetTypeID()SKIndexCopyDocumentForDocumentID(_:_:)SKIndexCopyInfoForDocumentIDs(_:_:_:_:_:)SKIndexCopyDocumentRefsForDocumentIDs(_:_:_:_:)SKIndexCopyDocumentURLsForDocumentIDs(_:_:_:_:)SKIndexCopyDocumentIDArrayForTermID(_:_:)SKIndexCopyTermIDArrayForDocumentID(_:_:)SKIndexCopyTermStringForTermID(_:_:)SKIndexGetTermIDForTermString(_:_:)SKIndexSetDocumentProperties(_:_:_:)SKIndexCopyDocumentProperties(_:_:)SKIndexGetDocumentState(_:_:)SKIndexGetDocumentTermCount(_:_:)SKIndexGetDocumentTermFrequency(_:_:_:)SKIndexGetTermDocumentCount(_:_:)SKIndexGetDocumentID(_:_:)