Dockyard > Objective-C Classes > FileInfoCell
See also
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
Method Detail
+ (NSImage *)branchImage
Support for being a browser cell. Returns the default image.
See also: NSBrowserCell.branchImage
+ (NSImage *)highlightedBranchImage
Support for being a browser cell. Returns the default highlighted image.
See also: NSBrowserCell.highlightedBranchImage
- (NSSize)cellSizeForBounds:(NSRect)bounds
Returns the total size needed to display this cell, including both the text and the image.
- (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.
- (NSColor *)highlightColorInView:(NSView *)controlView
Support for being a browser cell. Returns nil, representing the default color (I hope).
See also: NSBrowserCell.highlightColorInView:
- (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:
- (BOOL)isLeaf
Support for being a browser cell. Returns the private flag used by NSCell to represent leaves.
See also: NSBrowserCell.isLeaf
- (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
- (void)setImage:(NSImage *)anImage
Sets the cell's image to anImage. This image will be displayed centered above any text in the cell.
- (void)setLeaf:(BOOL)flag
Support for being a browser cell. Sets the private flag used by NSCell to represent leaves.
See also: NSBrowserCell.setLeaf:
- (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:
- (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