Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

resander

macrumors newbie
Original poster
Apr 12, 2008
11
0
I am still doing my homework before trying to port
some Windows programs to Mac OS X.

I have found programming documentation for Cocoa buttons,
including checkboxes and radio buttons as well as text
edit controls, but where are the docs describing how to
program Cocoa listboxes?
 
Yep - many thanks!

The Windows, Javascript and Java listbox corresponds to a
one-dimensional NSTableView without header.

Windows has two-dimensional views too, but I don't remember
if they support tableheaders.

The NSPopup control is nearly the same as a Windows combobox
without a scrollbar.

When looking for the Cocoa listbox I stumbled upon
NSComboBox, so Cocoa supports combo boxes too.
 
When looking for the Cocoa listbox I stumbled upon NSComboBox, so Cocoa supports combo boxes too.

Erm yes, no-one ever said it didn't :confused:

And could you let the forums wrap your posts instead of putting your own line returns in please: it's really annoying.
 
NSPopUpButton shouldn't be used if the number of entries is large enough to require scrolling, really it should only be used for a small number of items.

Picture 1.png

This example has too many items in it, but shows they do scroll if required.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.