ConfigurationSlice

public protocol ConfigurationSlice

Represents the number of configuration keys under the same basePath.

  • The base path for the child configuration keys.

    Declaration

    Swift

    static var basePath: String
  • boolKey(_:_:) Extension method

    Create the new Bool key with the defaultValue provided.

    Declaration

    Swift

    public static func boolKey(_ path: String, _ defaultValue: Bool) -> ConfigurationKey<Bool>
  • intKey(_:_:) Extension method

    Create the new Int key with the defaultValue provided.

    Declaration

    Swift

    public static func intKey(_ path: String, _ defaultValue: Int) -> ConfigurationKey<Int>
  • int64Key(_:_:) Extension method

    Create the new Int64 key with the defaultValue provided.

    Declaration

    Swift

    public static func int64Key(_ path: String, _ defaultValue: Int64) -> ConfigurationKey<Int64>
  • floatKey(_:_:) Extension method

    Create the new Float key with the defaultValue provided.

    Declaration

    Swift

    public static func floatKey(_ path: String, _ defaultValue: Float) -> ConfigurationKey<Float>
  • stringKey(_:_:) Extension method

    Create the new String key with the defaultValue provided.

    Declaration

    Swift

    public static func stringKey(_ path: String, _ defaultValue: String) -> ConfigurationKey<String>
  • fontKey(_:_:) Extension method

    Create the new NSFont key with the defaultValue provided.

    Declaration

    Swift

    public static func fontKey(_ path: String, _ defaultValue: NSFont) -> ConfigurationKey<NSFont>
  • colorKey(_:_:) Extension method

    Create the new NSColor key with the defaultValue provided.

    Declaration

    Swift

    public static func colorKey(_ path: String, _ defaultValue: NSColor = NSColor.black) -> ConfigurationKey<NSColor>
  • stringArrayKey(_:_:) Extension method

    Create the new [String] key with the defaultValue provided.

    Declaration

    Swift

    public static func stringArrayKey(_ path: String, _ defaultValue: [String] = []) -> ConfigurationKey<[String]>
  • namedPathsKey(_:_:) Extension method

    Create the new [NamedPath] key with the defaultValue provided.

    Declaration

    Swift

    public static func namedPathsKey(_ path: String, _ defaultValue: [NamedPath] = []) -> ConfigurationKey<[NamedPath]>
  • boolKey(_:forwardFrom:) Extension method

    Create the new Bool key with the forwardFrom key which provides the default value.

    Declaration

    Swift

    public static func boolKey(_ path: String, forwardFrom: ConfigurationKey<Bool>) -> ConfigurationKey<Bool>
  • intKey(_:forwardFrom:) Extension method

    Create the new Int key with the forwardFrom key which provides the default value.

    Declaration

    Swift

    public static func intKey(_ path: String, forwardFrom: ConfigurationKey<Int>) -> ConfigurationKey<Int>
  • int64Key(_:forwardFrom:) Extension method

    Create the new Int64 key with the forwardFrom key which provides the default value.

    Declaration

    Swift

    public static func int64Key(_ path: String, forwardFrom: ConfigurationKey<Int64>) -> ConfigurationKey<Int64>
  • floatKey(_:forwardFrom:) Extension method

    Create the new Float key with the forwardFrom key which provides the default value.

    Declaration

    Swift

    public static func floatKey(_ path: String, forwardFrom: ConfigurationKey<Float>) -> ConfigurationKey<Float>
  • stringKey(_:forwardFrom:) Extension method

    Create the new String key with the forwardFrom key which provides the default value.

    Declaration

    Swift

    public static func stringKey(_ path: String, forwardFrom: ConfigurationKey<String>) -> ConfigurationKey<String>
  • fontKey(_:forwardFrom:) Extension method

    Create the new NSFont key with the forwardFrom key which provides the default value.

    Declaration

    Swift

    public static func fontKey(_ path: String, forwardFrom: ConfigurationKey<NSFont>) -> ConfigurationKey<NSFont>
  • colorKey(_:forwardFrom:) Extension method

    Create the new NSColor key with the forwardFrom key which provides the default value.

    Declaration

    Swift

    public static func colorKey(_ path: String, forwardFrom: ConfigurationKey<NSColor>) -> ConfigurationKey<NSColor>
  • Create the new [String] key with the forwardFrom key which provides the default value.

    Declaration

    Swift

    public static func stringArrayKey(_ path: String, forwardFrom: ConfigurationKey<[String]>) -> ConfigurationKey<[String]>
  • namedPathKey(_:forwardFrom:) Extension method

    Create the new [NamedPath] key with the forwardFrom key which provides the default value.

    Declaration

    Swift

    public static func namedPathKey(_ path: String, forwardFrom: ConfigurationKey<[NamedPath]>) -> ConfigurationKey<[NamedPath]>
  • stringMapKey(_:_:) Extension method

    Create the new [String: String] key with the defaultValue provided.

    Declaration

    Swift

    public static func stringMapKey(_ path: String, _ defaultValue: [String: String] = [:]) -> ConfigurationKey<[String: String]>
  • stringMapKey(_:forwardFrom:) Extension method

    Create the new [String: String] key with the forwardFrom key which provides the default value.

    Declaration

    Swift

    public static func stringMapKey(_ path: String, forwardFrom: ConfigurationKey<[String: String]>) -> ConfigurationKey<[String: String]>