Returns a new or existing view with the specified identifier.
- macOS 10.7+
The view identifier. Must not be
The owner of the NIB that may be loaded and instantiated to create a new view with the specified identifier.
A view for the row.
identifier is associated with a cell view that’s contained in a table’s Nib file. When this method is called, the table view automatically instantiates the cell view with the specified owner, which is usually the table view’s delegate. (The owner is useful in setting up outlets and target/actions from the view.) Note that a cell view’s identifier must be the same as its table column’s identifier for bindings to work. If you’re using bindings, it’s recommended that you use the Automatic identifier setting in Interface Builder.
This method may also return a reused view with the same
identifier that is no longer available on screen. If a view with the specified identifier can’t be instantiated from the nib file or found in the reuse queue, this method returns
This method is usually called by the delegate in
table, but it can also be overridden to provide custom views for the
identifier. Note that
awake is called each time this method is called, which means that
awake is also called on
owner, even though the owner is already awake.