In Windows, a dialogbox is a window containing control gui
elements that are uniquely identified by int constants.
The int constants are typically generated by the GUI
builder/editor but can also be specified in programs.
An important API function finds a control handle
from a control (from MSDN doc):
GetDlgItem
The GetDlgItem function retrieves a handle to a control
in the specified dialog box.
HWND GetDlgItem(
HWND hDlg, // handle to dialog box
int nIDDlgItem // control identifier
);
Parameters
hDlg
[in] Handle to the dialog box that contains the control.
nIDDlgItem
[in] Specifies the identifier of the control to be retrieved.
Is there a corresponding function in Cocoa? OR how would
one find the handle of a Cocoa control in a Cocoa
dialogbox?
elements that are uniquely identified by int constants.
The int constants are typically generated by the GUI
builder/editor but can also be specified in programs.
An important API function finds a control handle
from a control (from MSDN doc):
GetDlgItem
The GetDlgItem function retrieves a handle to a control
in the specified dialog box.
HWND GetDlgItem(
HWND hDlg, // handle to dialog box
int nIDDlgItem // control identifier
);
Parameters
hDlg
[in] Handle to the dialog box that contains the control.
nIDDlgItem
[in] Specifies the identifier of the control to be retrieved.
Is there a corresponding function in Cocoa? OR how would
one find the handle of a Cocoa control in a Cocoa
dialogbox?