Questions tagged [nstablerowview]

The NSTableRowView class is the view shown for a row in an NSTableView. It is responsible for displaying attributes associated with the row, including the selection highlight, and group row look.

The NSTableRowView class is the view shown for a row in an NSTableView. It is responsible for displaying attributes associated with the row, including the selection highlight, and group row look.

Inheritance order :

NSObject > NSResponder > NSView

21 questions
4
votes
1 answer

NSTableView detect row scrolled off

I have a view-based NSTableView and each row has to generate some images which takes time. These are done on a background NSoperationQueue and started when a request for an image is made (through a binding). When a row is scrolled off screen, if the…
Trygve
  • 1,317
  • 10
  • 27
4
votes
1 answer

How to prototype NSTableRowView in Interface Builder

I have a view-based NSTableView and I'm trying to customize the appearance of certain rows. I understand I need to implement the delegate method mentioned in the title; However I'm not sure about how to do it. The documentation says: You can use…
Nicolas Miari
  • 16,006
  • 8
  • 81
  • 189
3
votes
2 answers

Remove Outline on Right-clicked Rows in SwiftUI Mac App List

I'm building a macOS app with SwiftUI, and I'm trying to remove (or even cover up) the border added to a List item when I right-click it. Here it is by default: Now with a right-click and a contextMenu view modifier: I figured this is an…
2
votes
1 answer

NSTableView: Create "Overlapping" Rows

The Goal I have an NSTableView in my app and I'd like to draw "overlapping" rows to create a "connecting" effect like that in Automator.app: What I'm Trying The approach I'm considering is to use NSTableView's…
Bryan
  • 4,628
  • 3
  • 36
  • 62
2
votes
1 answer

Call drawSelectionInRect only when selection changes in a custom TableRowView class?

In my OSX app I'm subclassing NSTablRowView to make custom row selection color for my view based custom tableView. I'm using following method overriding for that: - (void)drawSelectionInRect:(NSRect)dirtyRect I've noticed that this method is…
Eugene Gordin
  • 4,047
  • 3
  • 47
  • 80
1
vote
1 answer

How to implement a swipeable NSTableView cell?

A simple example for NSTableViewRowAction? Scroll left/right to delete or other action. - (NSArray *)tableView:(NSTableView *)tableView rowActionsForRow:(NSInteger)row edge:(NSTableRowActionEdge)edge
Joannes
  • 2,569
  • 3
  • 17
  • 39
1
vote
1 answer

NSTableRowView weird behaviour on drag and drop (keeps inserting NSView in the view hierarchy)

I've noticed strange behaviour in my app and cannot find a way to fix it: I have NSOutlineView with a custom NSTableRowView and support of drag and drop. When I drag item(file for example) on outlineview first it draws correct hightlight (I've…
CryingHippo
  • 5,026
  • 1
  • 28
  • 32
1
vote
1 answer

Strange description when debugging the datasource of an NSTableView

The context I have an error with the datasource of my NSTableView. The error is * Assertion failure in -[NSTableView _uncachedRectHeightOfRow:], /SourceCache/AppKit/AppKit-1265.19/TableView.subproj/NSTableView.m:1784 at the line self.tableView…
Colas
  • 3,473
  • 4
  • 29
  • 68
1
vote
1 answer

How to catch click event on NSImageView as subview in NSTableRowView?

In NSTableView I have NSTableRowView and in this row there is some NSImageView subview. Question: how to track click event on this image?
ruslan.berliner
  • 121
  • 2
  • 13
0
votes
0 answers

NSOutlineView floating group rows padding

I’ve set up my NSOutlineView to use floating group rows. And it works well, but the group rows which aren’t sticky all have extra top padding? I see no configuration options to remove this. How can I set the height of the floating rows to be the…
gypsyDev
  • 1,232
  • 1
  • 14
  • 22
0
votes
0 answers

No row object created with rowViewForRow

I want to use the rowViewForRow for checking what color the background must be. I have a stuct array with multiple data and it is an ranking. When there is an first place the background has to become blue. When not the background has to be…
0
votes
1 answer

How to implement NSTableViewRowlView like Xcode IB object selector

I am trying to implement a NSTableView that looks similar to the Xcode IB object selector (bottom right panel). As shown below when a row is selected a full width horizontal line is draw above and below the selected row. I have successfully created…
Duncan Groenewald
  • 8,496
  • 6
  • 41
  • 76
0
votes
3 answers

Can't override NSTableViewRow draw() behaviour to make transparent in NSOutlineView

I have an NSOutlineView with custom NSTableViewRows used throughout. I have overridden the draw method on the NSTableViewRow: override func draw(_ dirtyRect: NSRect) {} ...so it should never draw anything. However, rows are occasionally solid…
Giles
  • 1,428
  • 11
  • 21
0
votes
2 answers

Notification for new NSTableView Group Row

I'm looking to change the look of my row view when it becomes a group row, or possibly more specifically when it becomes the group row that is stuck at the top of the NSTableview. I wondered if there was a notification or some property that could be…
Sammy The Hand
  • 175
  • 1
  • 11
0
votes
1 answer

View-based NSTableView selection?

I wrote a view-based tableview, like this: and I draw selection with NSTableRowView, code is like this: - (void)drawRect:(NSRect)dirtyRect { [[NSColor clearColor] setFill]; if (self.isClicked) { [[[NSColor blackColor]…
melody5417
  • 355
  • 2
  • 13
1
2