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
0
votes
0 answers

NSTableView - Delete row in column

Is there a way to delete a row in a particular column, in NSTableView? If I use the following code: [self.newsList removeRowsAtIndexes:[NSIndexSet indexSetWithIndex:0] withAnimation:NSTableViewAnimationEffectNone]; All rows with index 0 are deleted…
0
votes
0 answers

Unable to change NSTableHeaderCell font on El Capitan

I'm developing a Cocoa App (OSX) and, in my tableview, I want to change the font of all of my columns. I'm using the cell-based version. Strangely, It is not possible to do it by using Interface Builder (IB). Each time, it forces me to use the font…
Chrstpsln
  • 765
  • 16
  • 31
0
votes
1 answer

How do I select column and row from a NSTableView?

I am writing a NSTableView based view. And I try to use: let selectedRowNumber = tableViewMesos.selectedRow and let selectedColumnNumber = tableViewMesos.selectedColumn to identify the textField that is in the cell View that I want to save into my…
Rafa Febrer
  • 184
  • 14
0
votes
1 answer

How to set indicator image on column with multiple sort descriptors?

NSDisableScreenUpdates(); [self.productsArrayController setFetchPredicate:predicate]; [self.productsArrayController setSortDescriptors:sortDescriptors]; [self.productsArrayController fetchWithRequest:[self.productsArrayController…
0
votes
1 answer

How to add columns in Cocoa NSTableView?

I want to show data in NSTableView. The number of columns is unspecified (could be any from 1 to ?? depending on the data), so I can't use Interface Builder. So I initialize (with IB) my table to 1 column, and thereafter add new columns as required…
A.Bertrand
  • 21
  • 4
0
votes
1 answer

Column identifiers used with NSTableView autosave feature must conform to NSCoding protocol: (null)

Scenario: I'm passing a NSTableColumn into a function from which I toggle it's hidden flag: func process(tableColumn:NSTableColumn, purpose:PricingCommercialMenuItems) { switch purpose { case .RemoveColumn: …
Frederick C. Lee
  • 9,019
  • 17
  • 64
  • 105
0
votes
2 answers

Core Data Image Won't Load Into NSTableView Image Cell

In my code I am storing an image into my Core Data model (works fine). If I set up my view to have an NSImageView and bind its Data to Controller Key: selection and modelKeyPath: myImagePath, it works. It will show each image for the selected row. I…
jcady
  • 168
  • 1
  • 9
0
votes
1 answer

How do I set an NSTableColumn headerCell stringValue in swift?

The documentation makes it look as if it would be as easy as this: var tc = NSTableColumn(identifier: "mycolumn") tc.headerCell.stStringValue("foo") The last line of code is a compile error, which I don't understand. On top of that I get a couple…
Bjorn
  • 69,215
  • 39
  • 136
  • 164
0
votes
1 answer

Have more than one NSTableView with different Content - not displays data

I've two TableViews (one SourceList and one Normal TableView). I'm not using ArrayControllers, just using: - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex; -…
ahmet2106
  • 4,957
  • 4
  • 27
  • 38
0
votes
1 answer

NSTableCell setDataCell disables editing

I have a NSTableView which I dynamically add columns. I've just added a call to setDataCell to customize my cell. The code looks like: for(NSUInteger columnIndex = 0; columnIndex < resultSet.columNames.count; ++columnIndex) { NSTableColumn *…
Kyle
  • 17,317
  • 32
  • 140
  • 246
0
votes
1 answer

NSTableView column editing with auto refresh of table

I have a NSTable that is being refreshed in each 5 seconds with new data. Now i have to add a new column to edit that user can edit. At the first time it is working edit column becomes un editable when table is being refreshed after 5 second. So…
M P
  • 352
  • 3
  • 14
0
votes
1 answer

Pinning a NSTableColumn so that it does not scroll horizontally?

I'm trying to figure out a way to have a NSTableColumn be pinned to the left side of my NSTableView. What I have been thinking of is putting two NSTableView's side by side, where the first one contains the 'pinned' column and the second on contains…
Kyle
  • 17,317
  • 32
  • 140
  • 246
0
votes
1 answer

What would prevent an editable NSTableColumn from being editable on double-click?

I have an NSTableView with a single column. This column has "Editable" checked in Interface Builder, but double-clicking on a cell in the table view does nothing. I've confirmed (in -tableView:viewForTableColumn:row: by checking [tableColumn…
Chuck
  • 4,662
  • 2
  • 33
  • 55
0
votes
1 answer

NSTableView set column to disabled

I have a NSTableView tied to a NSArrayController. The first column are checkboxes. I want to have the users select the rows to perform an action on via the checkboxes and when the user clicks the "Run" button I want to set the state of that column…
skellington
  • 149
  • 1
  • 1
  • 7
0
votes
1 answer

How to Change NSTableColumn width with Animation

I have a NSScrollView and a NSTableView with some NSTableColumn in it. When I push a button,I change the NSScrollView'width with Animation. Here is my code: NSDictionary *myScrollViewDictionary = [[NSDictionary alloc] initWithObjectsAndKeys: …