A high-level view class analagous to NSTextView.
More...
HFTextField encapsulates a HFController and HFRepresenters into a single "do it all" NSControl analagous to NSTextView.
§ controller
§ layoutRepresenter
§ byteArray
§ backgroundColors
- (NSArray*) backgroundColors |
|
readwritenonatomiccopy |
Sets the arry of background colors for the receiver. The background colors are used in sequence to draw each row.
§ bordered
§ delegate
§ data
Access the contents of the HFTextView's HFByteArray as an NSData. When setting, the data is copied via the -copy
message, so prefer to pass an immutable NSData
when possible. When getting, the NSData proxies an HFByteArray, and therefore it is usually more efficient than naively copying all of the bytes. However, access to the -byte
method will necessitate copying, a potentially expensive operation. Furthermore, the NSData API is inherently 32 bit in a 32 bit process. Lastly, there is no protection if the backing file for the data disappears.
For those reasons, this should only be used when its convenience outweighs the downside (e.g. some bindings scenarios). For most use cases, it is better to use the -byteArray
method above.
The documentation for this class was generated from the following file: