Questions tagged [nstablecolumn]

The NSTableColumn class stores the display characteristics and attribute identifier for a column in an NSTableView instance.

The NSTableColumn class stores the display characteristics and attribute identifier for a column in an NSTableView instance.

More: NSTableColumn Class Reference

82 questions
9
votes
1 answer

How to disable sorting in NSTableVIew?

I have a an NSTableView when ever I click on a specific header column the data in the table get reversed or sort upside down. I have checked NSTableView as well as NSTableColumn but couldn't find any method that disables this. I would be obliged if…
Omayr
  • 1,949
  • 4
  • 22
  • 35
9
votes
2 answers

Sorting NSTableColumn contents

I have a problem with sorting NSTableColumn contents. In my NSTableView there are three columns: File, Size, Path. The contents are stored in NSMutableArray. Each object in this array is a NSDictionary containing three keys: file, size and path -…
pinus.acer
  • 962
  • 1
  • 9
  • 28
9
votes
2 answers

Programmatically adding columns (with bindings) to a view-based NSTableView?

I've got a simple app that lists some models in a NSTableView. The table is a completely standard view-based table with a couple of columns, and is populated through an NSArrayController using bindings. All of that is set up in Interface Builder,…
Flambino
  • 18,507
  • 2
  • 39
  • 58
8
votes
2 answers

Why are my images in my NSTableView faded out?

To start, there's an NSArrayController ("Servers") whose content is an array of "server" objects. I also have an NSTableView with a column. The column is bound to Server's "arrangedObjects.status" property. I use a custom NSValueConverter to make…
Michael Bishop
  • 4,240
  • 3
  • 37
  • 41
6
votes
1 answer

Create view based NSTableView programmatically using Bindings in Swift

I am working through a Cocoa in Swift book and I am stuck in a chapter on Bindings. The book uses nib files but I want to do everything programmatically (since I am joining a team that does not use nibs). The project is to create a view based table…
RookiePro
  • 633
  • 1
  • 9
  • 18
5
votes
1 answer

How to bind data to a NSTableView from a NSDictionary?

Does anybody knows how to fill up a NSTableView using binding values from a NSDictionary? Thanks in advance.
Omer
  • 5,470
  • 8
  • 39
  • 64
5
votes
0 answers

Span NSTableVIew Header for multiple columns

How can I span a header of NSTableView for more than one columns, i.e. I want two/three columns under one header. Like shown in figure: |.....Header......| |..Col1..|..Col2..| I tried using two synchronous scroll view one on the top of another. The…
triandicAnt
  • 1,328
  • 2
  • 15
  • 40
4
votes
2 answers

Autosave of programmatically created NSTableColumn in NSTableView?

I have an NSTableView created in Interface Builder with some columns. I've set the tableview to autosave its settings (I set the autosave name in the Attributes Inspector and checked Column information). Now I want to add some other columns…
Nickkk
  • 2,261
  • 1
  • 25
  • 34
4
votes
2 answers

NSTableView selectable but not editable

Trying to get an NSTableView in IB to be selectable but not editable. But de-selecting "Editable" for a column also removes the selecting capability. Can someone tell me where I should insert this code to make it work (not working in app delegate…
yolo
  • 2,757
  • 6
  • 36
  • 65
4
votes
1 answer

How can I add subclass to NSTableCellView?

I add an Image & Text Table Cell View to NSTable in IB. There is a TextFiled and a ImageView in the Text Table Cell View, so my code looks like this: - (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn *)tableColumn…
PerterPon
  • 105
  • 1
  • 9
4
votes
1 answer

Problem naming NSTableColumn

I'm trying to create a column with an empty string as the identifier but Cocoa seems to replace the empty string with the word "Field" every time I try to create the column. How do you go around this? -…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
3
votes
2 answers

Resize Table Column when NSWindow resizes

I am working on a Cocoa application in which I am using NSTableView. Now I want the widths of the columns in the table view to be auto-resized when the user resizes or maximizes the window, by either dragging the application from a corner, or by…
Malav Soni
  • 2,739
  • 1
  • 23
  • 52
3
votes
2 answers

NSTableView with multiple columns

What is an easy way to set up my NSTableView with multiple columns to only display certain data in one column. I have the IBOutlets set up, but I don't know where to go from there.
Matt S.
  • 13,305
  • 15
  • 73
  • 129
3
votes
1 answer

Can I use a C++ Class Instance as an Objective-C++ id?

In connecting my C++ data model to my Cocoa table column UI, I'm wondering if I can provide the a C++ class instance at the id (identifier) to initWithIdentifier // what magic needs to occur to create an id from a CPP class? id…
SMGreenfield
  • 1,680
  • 19
  • 35
3
votes
1 answer

Implement checkbox in NSTableView in mac application

First of all, I searched for 3 days and have not found what I am looking for. Second point, I am VERY new to Xcode programming so PLEASE keep your answer as simple and/or detailed as possible! Inside my NSTableView I need the first column to be text…
sharkyenergy
  • 3,842
  • 10
  • 46
  • 97
1
2 3 4 5 6