Questions tagged [nsbrowser]

NSBrowser is a Cocoa control that breaks down items hierarchically.

NSBrowseris a Cocoa Control () that provides a user interface for displaying and selecting items from a list of data or from hierarchically organized lists of data, such as directory paths. When working with a hierarchy of data, the levels are displayed in columns, which are indexed from left to right.

A good example of an NSBrowser control in action is the column view of the OS X Finder ().

References:

33 questions
9
votes
5 answers

Removing Border from NSBrowser

As the title says, I actually want to remove the border from an NSBrowser control. The parents are NSView and NSControl. There's no available methods in NSBrowser itself, and neither in the parent controls. This one seems completely undocumented. As…
Kieran Senior
  • 17,960
  • 26
  • 94
  • 138
3
votes
2 answers

NSBrowser image is not displaying in cell

I'm using NSBrowser view to show list of files and folder in finder type app.I'm using new Item Base Api for NSBrowser. The problem is that when I try set image in willDisplayCell method. Nothing is displayed in view. Code: // This is a utility…
Kirit Vaghela
  • 12,572
  • 4
  • 76
  • 80
3
votes
1 answer

Problems implementing the NSBrowserDelegate protocol

I'm able to get my NSBrowser instance to display the correct data in the first column. When I select one of the options, however, the next column simply displays the same set of options. I have read the docs, looked at all of Apple's relevant sample…
maxedison
  • 17,243
  • 14
  • 67
  • 114
3
votes
1 answer

view-based NSBrowser?

Now that we have NSTableView and NSOutlineView that can have regular NSView objects as their cells, what about NSBrowser? That is can we use regular NSView objects as cells in NSBrowser?
adib
  • 8,285
  • 6
  • 52
  • 91
2
votes
2 answers

What is a NSBrowserTableView as compared to an NSBrowser?

I'm implementing a -(void)delete: method so I can handle the delete key in my Cocoa app. I want it to do different things depending on what's selected: for text-fields, I want the default behaviour (remove char to the left), but for NSBrowser…
Woodster
  • 3,451
  • 3
  • 17
  • 19
2
votes
1 answer

Populating an NSBrowser (Cocoa OSX)

I want to make a widget that displays a column of selectable text data. It seems that the NSBrowser is the best cocoa object to do this but I cannot figure out how to populate the NSBrowser with any sort of data. I assume I can set the string…
Mike2012
  • 7,629
  • 15
  • 84
  • 135
2
votes
0 answers

How to change draggingFormation for NSBrowser local drag and drop

I have implemented a view controller with local drag and drop of items from multiple NSBrowser cells onto a cell within the same NSBrowser control. Pretty much everything is working as I wish, except I would like to find the right place to change…
Chuck H
  • 7,434
  • 4
  • 31
  • 34
2
votes
1 answer

NSBrowser fills NSPasteboard but won't drop

I have an NSBroswer with a series of entries that look up a text blob. If the blob exists then - (BOOL)browser:canDragRowsWithIndexes:inColumn:withEvent: returns YES. This invokes - (BOOL)browser:writeRowsWithIndexes:inColumn:toPasteboard: In here I…
Dru Freeman
  • 1,766
  • 3
  • 19
  • 41
2
votes
3 answers

How to find user clicked on any row in NSBrowser?

In my Browser implementation to select default rows I have used the following code. [browser setTarget:self]; [browser setAction:@selector(singleClickOnBrowser:)]; [browser sendActionOn:NSLeftMouseDown]; [browser selectRow:0 inColumn:0]; [browser…
Ram
  • 1,872
  • 5
  • 31
  • 54
1
vote
1 answer

NSBrowser drag and drop swift

I am trying to get drag and drop working in a swift 4 Macos application with a NSBrowser control. The code I have at the moment looks like this: // Drag and Drop func browser(_ browser: NSBrowser, canDragRowsWith rowIndexes:…
StackLemming
  • 47
  • 1
  • 6
1
vote
0 answers

Context Menu in NSBrowser

When right-clicking on an item in an NSBrowser view the selection won't change. Instead the item clicked on gets a frame and a context menu is opened. Selected item and right-clicked item are two different things. In Finder (browser view), the…
C. Ocoa
  • 85
  • 6
1
vote
3 answers

Resize NSBrowser column to fit the width of the content

I'm using an NSBrowser (10.6SDK/Cocoa app) and I want to send a message to a browser column that will make it resize its width to match the width of the largest cell within that column. Seems pretty basic in concept, even as though there should be…
Woodster
  • 3,451
  • 3
  • 17
  • 19
1
vote
1 answer

NSBrowser simple example

I need to display the file system in the NSBrowser. Please provide with some sample examples. OR is there any other way to take path as input from the users.
sole007
  • 716
  • 1
  • 10
  • 27
1
vote
1 answer

NSBrowser not Repopulating children from NSTreeController after File Load via Core Data

I have a Core Data based Document backed application making heavy use of cocoa-bindings. I'm using an NSTreeController for populating an NSBrowser. The main entity has a set of children, accessible via a relationship called "children". I have no…
davecom
  • 1,499
  • 10
  • 30
1
vote
0 answers

NSBrowser / NSTreeController with async data

I have a NSBrowser that needs to display data that comes from a REST API. Sometimes this API takes a while to return results, so it would be nice to handle the network traffic in the background (lazy fetching). Sometimes a subtree needs to be…
korch458
  • 13
  • 3
1
2 3