FileInfoView

Dockyard > Objective-C Classes > FileInfoView

FileInfoView

Class Description

FileInfoView is a subclass of NSTextField that displays an icon centered above the view's text, similar to an NSButton. However, FileInfoView supports all of NSTextField's more advanced text layout abilities. FileInfoView uses FileInfoCell to implement its user interface.

Methods

- image

- setImage:

+ setShouldConvertToFileInfoCell:

+ shouldConvertToFileInfoCell

Method Detail

setShouldConvertToFileInfoCell:

+ (void)setShouldConvertToFileInfoCell:(BOOL)newShouldConvert

Sets whether or not NSTextFieldCells should be converted to FileInfoCells when unarchiving instances of FileInfoView. This is to allow current Interface Builder problems when setting a custom class for NSTextFields -- the cell is not converted. By default, the conversion takes place automatically.

See also: shouldConvertToFileInfoCell

shouldConvertToFileInfoCell

+ (BOOL)shouldConvertToFileInfoCell

Returns `YES` if NSTextFieldCells are automatically converted to FileInfoCells when unarchiving a FileInfoView, `NO` if not. The default is `YES`.

See also: setShouldConvertToFileInfoCell:

image

- (NSImage *)image

Returns the image displayed by this view, or `nil` if there is no image or if the cell does not support images.

setImage:

- (void)setImage:(NSImage *)newImage

If the view's cell supports images (which it does by default), sets the cell's image and redraws the view.

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