Skip to main content

Questions tagged [nstableview]

An Apple object that displays data for a set of related records, with rows representing individual records and columns representing the attributes of those records.

nstableview
0 votes
0 answers
32 views

Content hugging priority for the NSTableColumn in the view-based NSTableView

I have a simple view-based NSTableView with two columns: Name and Value (each cell contains a NSTextField-s) I want to use the the screen space as much as possible to be able to display the long ...
Serg's user avatar
  • 4,188
0 votes
1 answer
29 views

Weird Scrollbar UI element in programmatically created NSScrollView (objective-c)

i am on macOS, objective-C. Not Swift, not ios. I have a programmatically created NSScrollView with a nested NSTableView. The scrollbar shows some kind of square element. This element lies above the ...
Pat_Morita's user avatar
  • 3,435
0 votes
1 answer
21 views

NSTableView Loses Focus After Calling editColumn [duplicate]

I have an NSTableView where the user clicks a button to add a new row. This goes to an IBAction that inserts an object in the NSArrayController and then uses editColumn:row:withEvent:select: to put ...
ThinkCL's user avatar
  • 119
0 votes
1 answer
92 views

Bind selection in tableview in swift

So I've been doing Swift for like 1 1/2 weeks now, and coming from Objective-C, I would have thought the following would work. Everything I'm doing is completely without xibs. I have a class roughly ...
CocoaNut's user avatar
0 votes
1 answer
36 views

How to get all TableCellView prototypes from a TableView object?

I am doing my own localization, where I pre-parse all window controls after loading a window/view, and translate all specially-marked values, tooltips etc. If I preset a tooltip for a Table Cell View, ...
Thomas Tempelmann's user avatar
0 votes
0 answers
31 views

How to create a table cell view like this similar to native not app notification view

On Hover over the cell view, it is showing clear button when mouse leaves the cell view and still hovering the clear button the table cell view is still in hover state i.e clear button is not removed. ...
RRSK01_11's user avatar
0 votes
0 answers
31 views

NSTableView to NSOutlineView Drag & Drop not accepting drop

I have a macOS app that has been working fine for years. Full code base shows no warnings or errors. However after the latest "Recommended changes" in XCode Version 15.3 (15E204a) my ...
Jon Brown's user avatar
0 votes
0 answers
28 views

How to remove horizontal line in bottom of section NSTableView? [duplicate]

How do I delete the horizontal line between nstableview sections? These horizontal lines seem to be the lines for the start of numberofrows and the end of numberofrows. I have used func tableView(_ ...
dsx's user avatar
  • 1
0 votes
1 answer
36 views

Identify modified row for NSTableView bound with NSArrayController

I have an NSTableView bound to an NSArrayController, and have registered an observer for whenever data changes to the data fields that the array controller manages. For example, here's a few of the ...
Chuck D's user avatar
  • 43
1 vote
0 answers
33 views

NSTableView.reloadData(forRowIndexes:columnIndexes:) causes wrong subview layout when usesAutomaticRowHeights = true

I have a table view where each row has two labels, one left-aligned and one right-aligned. I would like to reload a single row, but doing so causes the right-aligned label to hug the left-aligned ...
Nickkk's user avatar
  • 2,585
0 votes
1 answer
45 views

Calculate/Display NSTableView column sum

I’m updating an Objective-C app. I have an NSTableView w/ 2 columns. Column 2 binding: set to arrayController, arrangedObjects, and the Model Key is set to a defined Entity Attribute. I have Attribute ...
Paul's user avatar
  • 193
0 votes
0 answers
33 views

NSTableView is unresponsive when presented in NSApp.runModal(for:)

I've noticed that depending when I call NSApp.runModal(for:), the table view contained in the presented window is unresponsive: it either doesn't scroll at all, or the content only updates after one ...
Nickkk's user avatar
  • 2,585
1 vote
1 answer
75 views

NSTableView hangs when scrolled down in fullscreen mode

I've got a programmatically created/populated (view-based) NSTableView with 37 columns and around 119500 rows. This performs well enough - I can make the window as big as I like and still scroll ...
Cherub's user avatar
  • 37
1 vote
2 answers
72 views

NSTableView cell value may remain with invalid value after validateValue(_:forKey:) failed. How to prevent this?

(Note: full project for experiments may be found here: https://github.com/snechaev/cocoa-validation-question) I have a simple two-column view-based NSTableView connected to the data using the Cocoa ...
Serg's user avatar
  • 4,188
0 votes
1 answer
92 views

How do I vertically align text in a custom table

I have a swift program that displays a custom table. Originally I incorrectly used a NSTextField for each cell and ran into a formatting issue. As can be seen in the picture below, the text in each ...
Chris's user avatar
  • 135

15 30 50 per page
1
2 3 4 5
149