Questions tagged [nsoutlineview]
NSOutlineView is a subclass of NSTableView that uses a row-and-column format to display hierarchical data that can be expanded and collapsed, such as directories and files in a file system. A user can expand and collapse rows, edit values, and resize and rearrange columns.
nsoutlineview
662
questions
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 ...
0
votes
1
answer
53
views
Bindings in NSPopUpButtonCell
I have the following class:
@interface QFormatRowData : NSObject
@property (copy) NSString *rowText;
@property (copy) NSString *completeAssetName;
@end
In the bindings inspector of NSTableColumn (...
0
votes
1
answer
93
views
NSOutlineView doesn't call delegates when wrapped with NSViewRepresentable
Due to limitations with DisclosureGroup functionality with a List, I'm looking into using NSOutlineView wrapped with NSViewRepresentable.
However, with this simple example, when I create the view I'm ...
0
votes
1
answer
95
views
The methods for Drag and Drop in NSOutlineView are not getting called
I'm trying to enable drag and drop functionality for NSOutlineView in my MacOS app. I want to drag a child from a folder to another folder within the outline view.
I want test asset 1 to be dragged ...
-1
votes
1
answer
75
views
How do i create a NSOutline programatically without using interface builder? I think I have implemented every steps for creating this
I am currently working on a macOS AppKit application and trying to implement an NSOutlineView with custom data using NSOutlineViewDataSource and NSOutlineViewDelegate. However, despite implementing ...
0
votes
1
answer
63
views
Changing the position of NSOutlineView disclosure triangle and setting up icons for child nodes
I am creating an OutlineView like this:
And I want to achieve a view which looks like this:
The 2 issues that I am facing are:
I cant find a way to move the disclosure triangle between the folder ...
0
votes
1
answer
63
views
Drag to select items on NSOutlineView depending on mouse position
I'd like to create a basic NSOutlineView that mimics macOS Finder 'as List' behaviour. When clicking and dragging the NSOutlineView should either select rows or start a dragging session, depending on ...
0
votes
0
answers
51
views
Setting text color of cells in outline view while dragging
I have a split view window with an outline view on the left and a table view on the right. I want to be able to drag items from the table view and drop them onto items in the outline view. The ...
0
votes
0
answers
32
views
Swift TLV Editor: Updating parent items in an NSOutlineView for adding/deleing items
What I want to do is building a TLV editor. The TLV-structur consists of constructed and normal items. When I add an item to a construction I need to update the length of the construction as well as ...
0
votes
0
answers
81
views
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 ...
1
vote
0
answers
85
views
NSOutlineView with usesAutomaticRowHeights causes log "WARNING: Application performed a reentrant operation in its NSTableView delegate."
What does this warning mean? In my main app, whenever this warning is logged, the outline view begins to behave weirdly after that, overlapping rows and not responding to clicks anymore. When not ...
0
votes
1
answer
100
views
How would you implement multiple items using NSOUtlineViews's pasteboardWriterForItem:
I am using an NSOutlineView with drag and drop support. There is an NSOutlineViewDataSource function entitled outlineView(_:pasteboardWriterForItem:).
This call serializes the item passed into the ...
3
votes
0
answers
166
views
How to add a plus button next to the disclosure button for group row in NSOutlineView?
I would like to add a button next to the disclosure button like in Mail.app.
And I don't want to do it like this in Photos.app.
I had a look at the answers in this question but they are about ...
0
votes
1
answer
136
views
creating a NSOutlineViewController associated to a NSTreeController
I try to take example on the apple sample "Navigating Hierarchical Data Using Outline and Split Views".
I made a app with SplitViewController, I put an NSOutlineView in the left pane and in ...
0
votes
1
answer
136
views
Expand item in NSOutlineView with NSTreeController
I'm trying (unsuccessfully) to get the node from a disclosure button clicked
I think this function is the more appropriate:
func outlineViewItemDidExpand(_ notification: Notification) {
let ...