<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.10.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSForm/addEntry(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSForm(im)addEntry:"
  },
  "title" : "addEntry(_:)"
}
-->

# addEntry(_:)

Adds a new entry to the end of the receiver and gives it the specified title.

```
func addEntry(_ title: String) -> NSFormCell
```

## Parameters

`title`

The title for the new form entry.

## Return Value

The form cell object that was created for the entry.

## Discussion

The new entry has no tag, target, or action, but is enabled and editable.

## See Also

[`var action: Selector?`](/documentation/AppKit/NSActionCell/action)

Returns the receiver’s action-message selector.

[`var target: AnyObject?`](/documentation/AppKit/NSActionCell/target)

Returns the receiver’s target object.

[`var isEnabled: Bool`](/documentation/AppKit/NSCell/isEnabled)

A Boolean value indicating whether the cell is currently enabled.

[`var isEditable: Bool`](/documentation/AppKit/NSCell/isEditable)

A Boolean value indicating whether the cell is editable.

[`var tag: Int`](/documentation/AppKit/NSActionCell/tag)

Returns the receiver’s tag.

  [Form Programming Topics](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Form/Form.html#//apple_ref/doc/uid/10000021i)



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)