Returns the object in the array with the given name.
- macOS 10.5+
The name of one of the receiver's objects.
A reference to the designated object or
nil if the object couldn’t be found.
This method is provided as an alternative to
object for applications where a name is available instead of (or in addition to) an index. A name is generally more stable than an index. For example, it is typically more useful to identify a mailbox in Mail by its name than by its index in the list of mailboxes.