How to setup a NSTableView with a custom cell using a subview.
Objective-C C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
English.lproj
NSTableViewCustomCell.xcodeproj
.gitignore
CustomCell.h
CustomCell.m
CustomCellView.h
CustomCellView.m
DataItem.h
DataItem.m
NSObjectTransformer.h
NSObjectTransformer.m
NSObjectWrapper.h
NSObjectWrapper.m
NSTableViewCustomCell-Info.plist
NSTableViewCustomCellAppDelegate.h
NSTableViewCustomCellAppDelegate.m
NSTableViewCustomCell_Prefix.pch
README.md
main.m
screenshot.png

README.md

NSTableViewCustomCell

This example aims to describe how to setup a NSTableView with a custom cell. The cell comes with custom view which will be added as subview. By this, the subview can be layouted using InterfaceBuilder. The implementation uses an ArrayController and Bindings to reduce the amount of source code needed when using the NSTableViewDataSource and NSTableViewDelegate protocols.

Screenshot

The screenshot shows the current implementation.

NSTableViewCustomCell screenshot

Configuration

The following configuration is used for the project.

  • MacOSX 10.6.6
  • XCode 3.2.2 64bit
  • Cocoa Application
  • Garbage collection