Mac Developer Library

Developer

AppKit Framework Reference NSPathComponentCell Class Reference

Options
Deployment Target:

On This Page
Language:

NSPathComponentCell

Inheritance


Import Statement


Swift

import AppKit

Objective-C

@import AppKit;

Availability


Available in OS X v10.5 and later.

The NSPathComponentCell class displays a component of a path.

An NSPathCell object manages a collection of NSPathComponentCell objects, in conjunction with an NSPathControl object, to represent a path.

  • Returns the image displayed for this component cell.

    Declaration

    Swift

    @NSCopying var image: NSImage?

    Objective-C

    @property(copy) NSImage *image

    Return Value

    The component cell image.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.5 and later.

    See Also

    – setImage

  • Sets the image displayed for this component cell.

    Declaration

    Swift

    @NSCopying var image: NSImage?

    Objective-C

    @property(copy) NSImage *image

    Parameters

    value

    The image to set for this component cell.

    Discussion

    Generally, a 16-by-16–point image fits best when the path style is NSPathStyleStandard or NSPathStylePopUp, and a 14-by-14–point image is best when the path style is NSPathStyleNavigationBar.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.5 and later.

    See Also

    – image

  • Returns the portion of the path from the root through the component represented by the receiver.

    Declaration

    Swift

    @NSCopying var URL: NSURL?

    Objective-C

    @property(copy) NSURL *URL

    Return Value

    The path value.

    Import Statement

    Objective-C

    @import AppKit;

    Swift

    import AppKit

    Availability

    Available in OS X v10.5 and later.

    See Also

    – setURL:

  • setURL: - setURL: Available in OS X v10.5 through OS X v10.9

    Sets the value of the portion of the path from the root through the component represented by the receiver.

    Declaration

    Objective-C

    - (void)setURL:(NSURL *)url

    Parameters

    url

    The new path value to display.

    Import Statement

    Objective-C

    @import AppKit;

    Availability

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

    See Also

    – URL