Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you take a look at the tool tip in IB you'll see that the option you refer to</p> <pre><code>- (BOOL)allowsColumnReordering </code></pre> <p>controls, well, column reordering. I do not believe there is any other way to do this other than the standard <a href="http://developer.apple.com/Mac/library/documentation/Cocoa/Conceptual/DragandDrop/UsingDragAndDrop.html#//apple_ref/doc/uid/20000726" rel="nofollow noreferrer">drag-and-drop API for table views</a>.</p> <p><strong>EDIT:</strong> <em>( 2012-11-25 )</em></p> <p>The answer refers to drag-and-drop reordering of <code>NSTableViewColumns</code>; and while it was the accepted answer at the time. It does not appear, now nearly 3 years on, to be correct. In service of making the information useful to searchers, I'll attempt to give the more correct answer.</p> <p>There is no setting that allows drag and drop reordering of <code>NSTableView</code> rows in Interface Builder. You need to implement certain <code>NSTableViewDataSource</code> methods, including:</p> <pre><code>- tableView:acceptDrop:row:dropOperation: - (NSDragOperation)tableView:(NSTableView *)aTableView validateDrop:(id &lt; NSDraggingInfo &gt;)info proposedRow:(NSInteger)row proposedDropOperation:(NSTableViewDropOperation)operation - (BOOL)tableView:(NSTableView *)aTableView writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard *)pboard </code></pre> <p>There are other SO question that address this reasonably thoroughly, including <a href="https://stackoverflow.com/questions/11116265/reordering-of-nstableview-rows-in-view-based-tableview">this one</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload