FileInfoCell

Dockyard > Objective-C Classes > FileInfoCell

FileInfoCell

> See also | FileInfoView

Class Description

Displays information like the Finder's column view, with an icon displayed centered at the top of the cell, and information is printed below. Has basic support for being in an NSBrowser, though this is not really recommended.

Methods

+ branchImage

- cellSizeForBounds:

- drawWithFrame:inView:

- highlightColorInView:

+ highlightedBranchImage

- image

- imageRectForBounds:

- isLeaf

- isLoaded

- reset

- set

- setImage:

- setLeaf:

- setLoaded:

- titleRectForBounds:

Method Detail

branchImage

+ (NSImage *)branchImage

Support for being a browser cell. Returns the default image.

See also: NSBrowserCell.branchImage

highlightedBranchImage

+ (NSImage *)highlightedBranchImage

Support for being a browser cell. Returns the default highlighted image.

See also: NSBrowserCell.highlightedBranchImage

cellSizeForBounds:

- (NSSize)cellSizeForBounds:(NSRect)bounds

Returns the total size needed to display this cell, including both the text and the image.

drawWithFrame:inView:

- (void)drawWithFrame:(NSRect)cellFrame inView:(NSView *)controlView

Draws the cell's image, centered at the top of the cell. Then draws the cell's text in the remaining space. If the cell has no image currently set, simply insets the text a little before drawing it.

highlightColorInView:

- (NSColor *)highlightColorInView:(NSView *)controlView

Support for being a browser cell. Returns `nil`, representing the default color (I hope).

See also: NSBrowserCell.highlightColorInView:

image

- (NSImage *)image

Returns the image currently being displayed.

imageRectForBounds:

- (NSRect)imageRectForBounds:(NSRect)cellFrame

Returns the space used to draw the cell's image, which is centered at the top. The image is drawn above the text.

See also: titleRectForBounds:

isLeaf

- (BOOL)isLeaf

Support for being a browser cell. Returns the private flag used by NSCell to represent leaves.

See also: NSBrowserCell.isLeaf

isLoaded

- (BOOL)isLoaded

Support for being a browser cell. Returns the private flag used by NSCell to represent whether or not the cell is loaded.

See also: NSBrowserCell.isLoaded

reset

- (void)reset

Support for being a browser cell. Does nothing.

See also: NSBrowserCell.reset

set

- (void)set

Support for being a browser cell. Does nothing.

See also: NSBrowserCell.set

setImage:

- (void)setImage:(NSImage *)anImage

Sets the cell's image to `anImage`. This image will be displayed centered above any text in the cell.

setLeaf:

- (void)setLeaf:(BOOL)flag

Support for being a browser cell. Sets the private flag used by NSCell to represent leaves.

See also: NSBrowserCell.setLeaf:

setLoaded:

- (void)setLoaded:(BOOL)flag

Support for being a browser cell. Sets the private flag used by NSCell to represent whether or not the cell is loaded.

See also: NSBrowserCell.setLoaded:

titleRectForBounds:

- (NSRect)titleRectForBounds:(NSRect)cellFrame

Returns the space used to draw the cell's text, which is inset from the edge of the cell on all sides. The text is drawn below the image.

See also: imageRectForBounds:

This page was generated with DocYouMeant, a program created by Belkadan Software