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
1
vote
2 answers

NSTableColumn sorts numbers wrongly

This is a NSTableView with IB bindings to a NSArrayController, it displays all values correctly. However it sorts the numbers only by their first char value e.g. it will put 115.31 below 2.5, and 23.9 below 4.71, etc. It takes values from a…
1
vote
2 answers

Adding NSTableView to NSView Programmatically

I am having a bit of trouble adding a NSTableView to an NSView programatically. The view is the first view of an NSSplitView. My Pointers are set up right i am sure of it because I can add a NSButton to the view no problem. Also my tableview's…
xMythicx
  • 827
  • 1
  • 11
  • 27
1
vote
1 answer

How to display sort indicator in the table header?

I sorted the NSTableColumn using the sort descriptors. I used the following code for Sorting. NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"Column3" ascending:NO]; NSArray *sortDescriptors= [NSArray…
Ram
  • 1,872
  • 5
  • 31
  • 54
1
vote
0 answers

How to right set height of NSTableCellView with NSTextField?

Greets! I have a View-based NSTableView with Custom View as a cell (NSTableCellView class). There is NSTextField inside custom cell. I need to display 3 lines of text inside NSTextField and after clicking on cell content must grow up to fit full…
1
vote
1 answer

NSTableColumn animation

I want to make a table view with dynamic columns. Similar to the one in Ecoute I just need one column to be visible at a time. As soon as it is double clicked, the whole table view (not scroll view) should animate to the left, and the new column…
IluTov
  • 6,807
  • 6
  • 41
  • 103
0
votes
1 answer

What are all the things you can bind to in a NSTableColumn of NSPopupButtonCell?

There are quite a few things you can bind to in a NSTableColumn filled with NSPopupButtonCell, I tried looking around for explanations but couldn't seem to find any. What are each of the binding under value selection for? For example, what's the…
Tony
  • 36,591
  • 10
  • 48
  • 83
0
votes
1 answer

Getting object info in willDisplayCell when NSTableView is using bindings

I have a table that's using bindings to get table data. I'm also using willDisplayCell to customize the specific cell when it's being displayed. My question is, how do I get the value of the cell that's being referred-to in the willDisplayCell…
AWF4vk
  • 5,810
  • 3
  • 37
  • 70
0
votes
1 answer

NSTableView does not show last column

I am programmatically creating an NSTableView with a set of 6 columns, the parameters of which are defined in an Enum: public enum SearchResultFields: Int, Codable, CaseIterable { case symbol = 0 case name = 1 case securityClass = 2 case…
Marco
  • 81
  • 1
  • 8
0
votes
3 answers

How to set second column text of NSTableView?

I've encountered a problem while creating an NSTableView with 2 columns. How do you set the value of the a row's corresponding column? I would like to have colText to be in the row's column, but it seems nearly impossible to achieve. Here's the…
Jack Greenhill
  • 10,240
  • 12
  • 38
  • 70
0
votes
1 answer

NSMatrix on NSTableColumn

Is it possible to set an NSMatrix as the cell of a NSTableColumn?. If possible, how should I do it? Thanks in advance.
mikywan
  • 1,495
  • 1
  • 19
  • 38
0
votes
0 answers

Custom NSTableViewCell is not aligned when is displayed in the NSTableView

I made a custom NSTableCellView. I created my own custom NIB file, which the root view class is assigned to my CustomTableCellView class. The XIB file hierarchy is as follows: Then, during the awakeFromNib I register my custom…
Jacobo
  • 1,259
  • 2
  • 19
  • 43
0
votes
1 answer

How do you Sort Bound Data in NSTableColumn using InterfaceBuilder binding?

Sorting Bound Data in NSTableColumn using IB binding. Keys: NSTableColumn , sorting, NSArrayController, Content Set A contentSet serves like a data source for a TableColumn This deals with a SplitView with two single column NSTableViews The names of…
mbarron
  • 285
  • 4
  • 15
0
votes
1 answer

NSTableColumn sorting with Core Data dictionary

Model extension MyEntity { @nonobjc public class func fetchRequest() -> NSFetchRequest< MyEntity > { return NSFetchRequest< MyEntity >(entityName: "MyEntity") } @NSManaged public var customFields: NSDictionary? } customFields…
vomi
  • 993
  • 8
  • 18
0
votes
1 answer

One of Two Bound Tableviews Not Updated for Changes in Other Table

I have an OS X app that uses a splitview with two embeded NSTableViews. Changing a value in one table view should change a related value in the second but this does not happen. It uses CoreData using databinding and not glue code. There is an…
0
votes
1 answer

How are the new taller table header rows with extra sorting functionality in iTunes implemented?

In iTunes 10 Apple switched to a taller table header with a slightly different visual appearance, where the column dividers don't reach the top of the row, and certain cells have extended sorting functionality when clicked. Here is what i'm…