NSPathComponentCell Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in OS X v10.5 and later.
Declared in
NSPathComponentCell.h
Related sample code

Overview

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.

Tasks

Setting the Image

Setting the Path

Instance Methods

image

Returns the image displayed for this component cell.

- (NSImage *)image;
Return Value

The component cell image.

Availability
  • Available in OS X v10.5 and later.
See Also
Declared In
NSPathComponentCell.h

setImage:

Sets the image displayed for this component cell.

- (void)setImage:(NSImage *)value;
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.

Availability
  • Available in OS X v10.5 and later.
See Also
Declared In
NSPathComponentCell.h

setURL:

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

- (void)setURL:(NSURL *)url
Parameters
url

The new path value to display.

Availability
  • Available in OS X v10.5 and later.
See Also
Declared In
NSPathComponentCell.h

URL

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

- (NSURL *)URL
Return Value

The path value.

Availability
  • Available in OS X v10.5 and later.
See Also
Related Sample Code
Declared In
NSPathComponentCell.h