I
Analyzed 11 months ago
An NSComboBox subclass (Cocoa) that allows drag-resizing of the combo box pop-up.
NSComboBox generates its pop-up by creating a special NSWindow subclass, NSComboBoxWindow. This pop-up window has an NSScrollView (or subclass thereof) as its content view and uses that to display the choices and
... [More]
(if needed) the scrollbar (via an NSComboTableView, which is a subclass of NSTableView).
IGResizableComboBox inserts its own NSView subclass as the content view of the NSComboBoxWindow and puts the NSScrollView as a subview of this NSView. This NSView is slightly taller than the NSScrollView and the NSView captures mouse dragging events on this extra space to allow resizing. [Less]