Next Page > Hide TOC

NSPathComponentCell Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Availability
Available in Mac 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
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
See Also
Related Sample Code
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
See Also
Related Sample Code
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
See Also
Related Sample Code
Declared In
NSPathComponentCell.h

Next Page > Hide TOC


© 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-04-11)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.