Mac Developer Library

Developer

AppKit Framework Reference NSDictionaryControllerKeyValuePair Protocol Reference

Options
Deployment Target:

On This Page
Language:

NSDictionaryControllerKeyValuePair

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Swift

import AppKit

Objective-C

@import AppKit;

Availability


Available in OS X v10.5 and later.

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

  • 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.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.5 and later.

  • Returns the receiver’s localized key name.

    Declaration

    Swift

    func localizedKey() -> String?

    Objective-C

    - (NSString *)localizedKey

    Return Value

    The localized key name.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.5 and later.

  • Sets the key name for the receiver.

    Declaration

    Swift

    func setKey(_ key: String?)

    Objective-C

    - (void)setKey:(NSString *)key

    Parameters

    key

    The key name.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.5 and later.

    See Also

    – key

  • Returns the receiver’s key name.

    Declaration

    Swift

    func key() -> String?

    Objective-C

    - (NSString *)key

    Return Value

    The key name.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.5 and later.

    See Also

    – setKey:

  • Sets the receiver’s value.

    Declaration

    Swift

    func setValue(_ value: AnyObject?)

    Objective-C

    - (void)setValue:(id)value

    Parameters

    value

    An object.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.5 and later.

    See Also

    – value

  • Returns the receiver’s value.

    Declaration

    Swift

    func value() -> AnyObject?

    Objective-C

    - (id)value

    Return Value

    The receiver’s value object.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.5 and later.

    See Also

    – setValue:

  • 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.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.5 and later.