Cocoa Programming L13 - NSTableView Intro

AppleProgramming · 31K views · 2011 · 14:08

Open on YouTube

Software (other)GUI, HCI & interface historytutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering questions that need a working NSTableView setup, especially for beginners who need to display an array of data.

Recommended by 3 people across 3 different months, 2012 to 2014.

What it is

A 14-minute screencast from the AppleProgramming channel that introduces NSTableView in Cocoa and shows how to set one up. It is lesson 13 in a Cocoa programming series aimed at Mac OS X development with Objective-C.

What people said

Strong rec Pedro Vieira · 2012-12 · Stack Overflow · on “directory listing in nstableview”

You really should check out this tutorials about NSTableViews . The creator of the tutorials is very good. I started learning objective-c by watching his videos. Take a look at these tutorials: Tutorial 1 [this video] - Introduction to NSTableViews Tutorial 2 [LINK] - Adding data to NSTableViews Tutorial 3 [LINK] - Editing the Data

Recommends d00dle · 2013-03 · Stack Overflow · on “Obj C - Autocomplete”

You need to create a view to display them in. All you have done so far is load the autocomplete suggestions in an array. You need to display them in a TableView or something. Look here to get a good tutorial on how they work. -> [this video] Take a good look at the source code provided by the author, he demonstrate how he use the array to populate a TableView. Edit: The youtube tutorial is for a NSTableView for OS X programming, but you get the hang of it.

Recommends markhunte · 2014-02 · Stack Overflow · on “Xcode Applescript create list of results”

A very simplistic way. Add an NSArrayController to the IB Objects. Connect it to an outlet. Select the TableView's TableColumn and go to it Bindings Inspector. Bind it's Value to Array Controller And name it's model key path as ' time ' In the TableColumn 's Attributes Inspector. Set it's Title to ' time ' The code would be like this: property ArrayController :missing value on addTime_(sender) --clicked to add time tell application "QuickTime Player" set SMPTE to get current time of document 1 end tell ArrayController's addObject:{|time|:SMPTE} end addTime_ The Button would need to be connected to the Action: addTime: To remove an item: Simply add a new button and connect it to the ArrayCont