Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 702
adib Avatar asked Feb 11 '26 10:02

adib


1 Answers

Short answer: No, not yet

NSOutlineView is a subclass of NSTableView so both of them got the upgrade to be able to use NSView objects as cells in Mac OS X 10.7. This is specifically called out at the beginning of the documentation for NSTableView:

Table views are displayed in scroll views. Beginning with OS X v 10.7 NSView instances (most commonly NSTableCellView instances or a subclass) are supported for rows and columns. Alternatively, NSCell subclass instances can be used for each row and column item.

On the other hand for NSBrowser it says specifically:

This class uses the NSBrowserCell class to implement its user interface.

like image 165
torrey.lyons Avatar answered Feb 15 '26 10:02

torrey.lyons



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!