Dockyard > Objective-C Classes > 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
+ setShouldConvertToFileInfoCell:
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
+ (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:
- (NSImage *)image
Returns the image displayed by this view, or nil if there is no image or if the cell does not support images.
- (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