title: How to edit NSObject data
body: <p>I hava an NSObject class where I am saving my array data. I am displaying that array data in OutlineView. On click of button I am adding a new element under selected item. I want to add a new element inside array. Any help?</p>
  <p>I am able to append new element at the end of the array but not under parent item(Selected item in outlineview).</p>
  <pre><code>@IBAction func CreateFolderClicked(_ sender: Any) {
      let newIndex = selectedItemIndex
      let parent = foldersOutlineView.item(atRow: selectedRow)
      if let Temp = parent as? objectData{
          folderArray.append(Temp)
          myOutlineView.insertItems(at: newIndex, inParent: Temp, withAnimation: .slideDown)
          myOutlineView.reloadData()
      }        
  }
  </code></pre>