Mac Developer Library

Developer

AppKit Framework Reference NSDictionaryControllerKeyValuePair Protocol Reference

Options
Deployment Target:

On This Page
Language:

NSDictionaryControllerKeyValuePair

NSDictionaryControllerKeyValuePair is an informal protocol that is implemented by objects returned by the NSDictionaryController method arrangedObjects. See NSDictionaryController Class Reference for more information.

  • setLocalizedKey(_:) - setLocalizedKey: Available in OS X v10.5 through OS X v10.10.3

    Sets the localized key name for the receiver.

    Declaration

    Swift

    func setLocalizedKey(_ localizedKey: String?)

    Objective-C

    - (void)setLocalizedKey:(NSString *)localizedKey

    Parameters

    localizedKey

    The localized name of the receivers key.

    Availability

    Available in OS X v10.5 through OS X v10.10.3.

  • localizedKey() - localizedKey Available in OS X v10.5 through OS X v10.10.3

    Returns the receiver’s localized key name.

    Declaration

    Swift

    func localizedKey() -> String?

    Objective-C

    - (NSString *)localizedKey

    Return Value

    The localized key name.

    Availability

    Available in OS X v10.5 through OS X v10.10.3.

  • setKey(_:) - setKey: Available in OS X v10.5 through OS X v10.10.3

    Sets the key name for the receiver.

    Declaration

    Swift

    func setKey(_ key: String?)

    Objective-C

    - (void)setKey:(NSString *)key

    Parameters

    key

    The key name.

    Availability

    Available in OS X v10.5 through OS X v10.10.3.

    See Also

    – key

  • key() - key Available in OS X v10.5 through OS X v10.10.3

    Returns the receiver’s key name.

    Declaration

    Swift

    func key() -> String?

    Objective-C

    - (NSString *)key

    Return Value

    The key name.

    Availability

    Available in OS X v10.5 through OS X v10.10.3.

    See Also

    – setKey:

  • setValue(_:) - setValue: Available in OS X v10.5 through OS X v10.10.3

    Sets the receiver’s value.

    Declaration

    Swift

    func setValue(_ value: AnyObject?)

    Objective-C

    - (void)setValue:(id)value

    Parameters

    value

    An object.

    Availability

    Available in OS X v10.5 through OS X v10.10.3.

    See Also

    – value

  • value() - value Available in OS X v10.5 through OS X v10.10.3

    Returns the receiver’s value.

    Declaration

    Swift

    func value() -> AnyObject?

    Objective-C

    - (id)value

    Return Value

    The receiver’s value object.

    Availability

    Available in OS X v10.5 through OS X v10.10.3.

    See Also

    – setValue:

  • isExplicitlyIncluded() - isExplicitlyIncluded Available in OS X v10.5 through OS X v10.10.3

    Specifies whether the receiver’s key name is an included key.

    Declaration

    Swift

    func isExplicitlyIncluded() -> Bool

    Objective-C

    - (BOOL)isExplicitlyIncluded

    Return Value

    YEStrue if the key name is specified as an included key, otherwise NOfalse.

    Availability

    Available in OS X v10.5 through OS X v10.10.3.