Type Method


Remove from view the named font collection with the specified visibility.


class func hide(withName name: NSFontCollection.Name, visibility: NSFontCollection.Visibility) throws



The name of the collection.


The visibility of the collection.


If unsuccessful, a reference to an NSFileManager error object that encapsulates the reason the font collection could not be returned.

Return Value

true if the method was successful; false otherwise.


For a persistent font collection, this method deletes the named font collection from disk.

See Also

Naming the Font Collection

class func rename(fromName: NSFontCollection.Name, visibility: NSFontCollection.Visibility, toName: NSFontCollection.Name)

Renames the font collection with the specified name and visibility to the second name specified.

class var allFontCollectionNames: [NSFontCollection.Name]

Returns all named collections visible to this process.

struct NSFontCollection.Name

The constants represent the standard mutable collection names—these names are included in the list of allFontCollectionNames--they have special meaning to the Cocoa font system and should not be hidden or renamed.

struct NSFontCollection.Visibility

Constants that specify the visibility of font collections.